nova-crm
2
TS app.ts
{} package.json
1import express from 'express';minor behind · 4.21.2 · 1 major behind · 5.1.0
2import bodyParser from 'body-parser';
3import { invoiceRouter } from './routes/invoices';
4
5const app = express();
6app.use(bodyParser.json());
7app.use('/invoices', invoiceRouter);
8
9app.get('/healthz', (_req, res) => res.json({ ok: true }));
10
11const port = process.env.PORT ?? 3000;
12app.listen(port, () => console.log(`nova-crm on :${port}`));
main
0 0
62 +3 · 2
Ln 6, Col 27
Spaces: 2
UTF-8
TypeScript