rgb-to-hex converter fully implemented

This commit is contained in:
Domenik 2025-02-15 19:52:49 +01:00
parent 6d71eaef03
commit 557efd74ba
9 changed files with 228 additions and 19 deletions

View file

@ -1,15 +1,17 @@
import Fastify from "fastify";
import cors from "@fastify/cors";
import multipart from '@fastify/multipart';
import multipart from "@fastify/multipart";
import { libreConvert } from "./src/routes/libreconvert.route";
import { colorConvert } from "./src/routes/colorconvert.route";
const app = Fastify({ logger: true });
app.register(cors, { origin: "*" });
app.register(multipart);
app.register(libreConvert);
app.register(colorConvert);
const PORT = process.env.PORT || 4000;
app.listen({ port: Number(PORT), host: "0.0.0.0" }, () => {
console.log(`🚀Fastify is live on http://localhost:${PORT}`);
});
console.log(`🚀Fastify is live on http://localhost:${PORT}`);
});