mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
Api changes
This commit is contained in:
parent
682210c46f
commit
38bcbfdb8f
20 changed files with 319 additions and 154 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue