2024-02-05 20:58:46 +01:00
|
|
|
import "@stirling-pdf/shared-operations/src/i18next.config";
|
2023-12-30 02:18:07 +01:00
|
|
|
|
2024-01-04 20:17:54 -05:00
|
|
|
import express from "express";
|
2023-10-16 23:11:33 +02:00
|
|
|
const app = express();
|
2023-11-10 23:41:31 +03:00
|
|
|
const PORT = 8000;
|
2023-10-26 21:53:02 +03:00
|
|
|
|
2023-11-07 01:45:16 +01:00
|
|
|
// server-node: backend api
|
2024-01-04 20:17:54 -05:00
|
|
|
import api from "./routes/api/api-controller";
|
2023-11-15 15:33:04 +03:00
|
|
|
app.use("/api", api);
|
2023-11-08 02:11:49 +03:00
|
|
|
|
2023-11-07 01:45:16 +01:00
|
|
|
// serve
|
2023-11-10 23:41:31 +03:00
|
|
|
app.listen(PORT, () => {
|
2023-10-16 23:11:33 +02:00
|
|
|
console.log(`http://localhost:${PORT}`);
|
2024-01-04 20:17:54 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
process.on('unhandledRejection', (reason, promise) => {
|
2024-01-26 16:26:04 +01:00
|
|
|
console.error('Unhandled Rejection at:', promise, 'reason:', reason);
|
2024-01-04 20:17:54 -05:00
|
|
|
});
|