mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
Api changes
This commit is contained in:
@@ -36,13 +36,15 @@ app.prepare().then(() => {
|
||||
externalServer.use(cors());
|
||||
externalServer.use(cookieParser());
|
||||
externalServer.use(express.json());
|
||||
externalServer.use(
|
||||
rateLimitMiddleware({
|
||||
windowMin: 1,
|
||||
max: 100,
|
||||
type: "IP_ONLY",
|
||||
}),
|
||||
);
|
||||
if (!dev) {
|
||||
externalServer.use(
|
||||
rateLimitMiddleware({
|
||||
windowMin: 1,
|
||||
max: 100,
|
||||
type: "IP_ONLY",
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
const prefix = `/api/v1`;
|
||||
externalServer.use(prefix, unauthenticated);
|
||||
|
||||
Reference in New Issue
Block a user