Created the content delivery server/service

This commit is contained in:
Mathias Wagner 2022-09-06 20:05:33 +02:00
parent 97a3d218cf
commit c6278410e6
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,9 @@
import express, {Express} from 'express';
const app: Express = express();
/** Logs something with a cdn prefix */
const log = (msg: string) => console.log(`[ContentDelivery] ${msg}`);
/** Starts the cdn service */
export const startServer = (port: number = 8673) => app.listen(port, () => log(`Listening on port ${port}`));