feat(backend): theme routes in different languages

This commit is contained in:
Gabriellvl 2025-02-22 22:55:27 +01:00
parent c07bb959cf
commit 4186e7c7d4
9 changed files with 1553 additions and 6 deletions

View file

@ -1,5 +1,7 @@
import express, { Express, Response } from 'express';
import initORM from './orm.js';
import themeRoutes from "./routes/themes.js";
const app: Express = express();
const port: string | number = process.env.PORT || 3000;
@ -7,10 +9,13 @@ const port: string | number = process.env.PORT || 3000;
// TODO Replace with Express routes
app.get('/', (_, res: Response) => {
res.json({
message: 'Hello Dwengo!',
message: 'Hello Dwengo!🚀',
});
});
app.use("/routes", themeRoutes);
async function startServer() {
await initORM();