fix: ensure geminiMiddleware runs before everything else
This commit is contained in:
parent
a49c5d9851
commit
0c09378dff
1 changed files with 4 additions and 4 deletions
|
|
@ -57,13 +57,13 @@ openapi.registry.registerComponent("securitySchemes", "apiKey", {
|
||||||
in: "header",
|
in: "header",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Define Routes
|
|
||||||
openapi.post(rootPath + "generate", GenerateEndpoint);
|
|
||||||
openapi.post(rootPath + "condense_text", CondenseTextEndpoint);
|
|
||||||
|
|
||||||
// Define Middlewares
|
// Define Middlewares
|
||||||
app.use("*", geminiMiddleware);
|
app.use("*", geminiMiddleware);
|
||||||
app.use(rootPath + "generate", authMiddleware);
|
app.use(rootPath + "generate", authMiddleware);
|
||||||
app.use(rootPath + "condense_text", authMiddleware);
|
app.use(rootPath + "condense_text", authMiddleware);
|
||||||
|
|
||||||
|
// Define Routes
|
||||||
|
openapi.post(rootPath + "generate", GenerateEndpoint);
|
||||||
|
openapi.post(rootPath + "condense_text", CondenseTextEndpoint);
|
||||||
|
|
||||||
export default app;
|
export default app;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue