feat: zentrale selfhost-dienste bereitstellen
This commit is contained in:
@@ -7,6 +7,7 @@ import { pool } from "./db/client.js";
|
||||
import { adminRoutes } from "./routes/admin.js";
|
||||
import { instanceRoutes } from "./routes/instance.js";
|
||||
import { publicRoutes } from "./routes/public.js";
|
||||
import { serviceRoutes } from "./routes/services.js";
|
||||
|
||||
const app = Fastify({
|
||||
logger: true,
|
||||
@@ -39,6 +40,7 @@ await app.register(cors, {
|
||||
await app.register(publicRoutes);
|
||||
await app.register(adminRoutes);
|
||||
await app.register(instanceRoutes);
|
||||
await app.register(serviceRoutes);
|
||||
|
||||
const close = async () => {
|
||||
await app.close();
|
||||
|
||||
Reference in New Issue
Block a user