add archive script, proccessed routes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user