feat(backend): theme routes in different languages
This commit is contained in:
parent
c07bb959cf
commit
4186e7c7d4
9 changed files with 1553 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue