Created the content delivery server/service

This commit is contained in:
2022-09-06 20:05:33 +02:00
parent 97a3d218cf
commit c6278410e6

@ -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}`));