mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
added axios client
This commit is contained in:
parent
3c69acaab7
commit
29777da430
7 changed files with 81 additions and 41 deletions
|
@ -7,6 +7,7 @@ import helmet from "helmet";
|
|||
import cors from "cors";
|
||||
import {
|
||||
errorHandlerMiddleware,
|
||||
notFoundMiddleware,
|
||||
rateLimitMiddleware,
|
||||
} from "@server/middlewares";
|
||||
import internal from "@server/routers/internal";
|
||||
|
@ -42,6 +43,8 @@ app.prepare().then(() => {
|
|||
externalServer.use(prefix, unauthenticated);
|
||||
externalServer.use(prefix, authenticated);
|
||||
|
||||
externalServer.use(notFoundMiddleware)
|
||||
|
||||
// We are using NEXT from here on
|
||||
externalServer.all("*", (req: Request, res: Response) => {
|
||||
const parsedUrl = parse(req.url!, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue