Update API routes function. Add middleware. Update README.md

This commit is contained in:
2026-03-17 19:38:06 +01:00
parent ee1fb5897e
commit 35930857fd
20 changed files with 747 additions and 312 deletions
+20
View File
@@ -0,0 +1,20 @@
import { Command } from "commander";
import grabConfig from "../../functions/grab-config";
import startServer from "../../functions/server/start-server";
import init from "../../functions/init";
export default function () {
return new Command("start")
.description("Start production server")
.action(async () => {
console.log(`Starting production server ...`);
await init();
const config = await grabConfig();
global.CONFIG = { ...config };
await startServer();
});
}