1
0

Add i18n, refactor create

This commit is contained in:
2024-10-27 22:12:57 +01:00
parent 35f37491af
commit cf888674e0
6 changed files with 182 additions and 31 deletions

View File

@@ -2,6 +2,7 @@ import fs from "fs"
import express from "express"
import http from "http"
import https from "https"
import i18n from "./i18n.js"
import routes from "./routes.js"
const defaulthandler = (req, res, next) => {
@@ -27,6 +28,8 @@ const start = (srvConfig) => {
router.use(express.json())
router.pug = pug
// router.i18n = i18n
app.locals.i18n = i18n
routes.load(router, srvConfig.features)