Stirling-PDF/server-node/src/index.ts

12 lines
255 B
TypeScript
Raw Normal View History

import express from 'express';
2023-10-16 23:11:33 +02:00
const app = express();
const PORT = 8000;
2023-10-26 20:53:02 +02:00
2023-11-07 01:45:16 +01:00
// server-node: backend api
2023-11-13 00:29:00 +01:00
import api from './routes/api/api-controller';
2023-11-07 01:45:16 +01:00
app.use("/api/", api);
2023-11-07 01:45:16 +01:00
// serve
app.listen(PORT, () => {
2023-10-16 23:11:33 +02:00
console.log(`http://localhost:${PORT}`);
});