mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
rgb-to-hex converter fully implemented
This commit is contained in:
parent
6d71eaef03
commit
557efd74ba
9 changed files with 228 additions and 19 deletions
|
|
@ -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}`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue