Created the content delivery server/service
This commit is contained in:
parent
97a3d218cf
commit
c6278410e6
9
server/contentDelivery.ts
Normal file
9
server/contentDelivery.ts
Normal 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}`));
|
Loading…
x
Reference in New Issue
Block a user