mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
15 lines
No EOL
475 B
TypeScript
15 lines
No EOL
475 B
TypeScript
import Fastify from "fastify";
|
|
import cors from "@fastify/cors";
|
|
import multipart from '@fastify/multipart';
|
|
import { libreConvert } from "./src/routes/libreconvert.route";
|
|
|
|
const app = Fastify({ logger: true });
|
|
|
|
app.register(cors, { origin: "*" });
|
|
app.register(multipart);
|
|
app.register(libreConvert);
|
|
|
|
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}`);
|
|
}); |