add archive script, proccessed routes

This commit is contained in:
2025-03-10 17:42:55 +05:30
parent fec1e61a2f
commit 43881651f3
6 changed files with 408 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ import { webAuthnRoutes } from "./webauthn/webauthn.route";
import { configSchemas } from "./config/config.schema";
import { mailSchemas } from "./mailProxy/mailProxy.schema";
import { viewSchemas } from "./view/view.schema";
import { processedSchemas } from "./processed/processed.schema";
const app = fastify({ logger: true, trustProxy: true });
@@ -32,7 +33,7 @@ oauth(app);
app.decorate("authorize", authorize);
app.setErrorHandler(errorHandler);
app.register(cors, {
origin: [process.env.UI_DOMAIN || ""],
origin: [process.env.UI_DOMAIN || "", "http://localhost:8000"],
credentials: true,
});
app.register(multipart, { limits: { fileSize: 50000000 } });
@@ -53,6 +54,7 @@ for (const schema of [
...configSchemas,
...mailSchemas,
...viewSchemas,
...processedSchemas,
]) {
app.addSchema(schema);
}