1
0
forked from Yara724/api

FIX FILE SIZES

This commit is contained in:
SepehrYahyaee
2026-05-23 16:23:11 +03:30
parent 94bde88cb6
commit a31196774c
10 changed files with 58 additions and 40 deletions

View File

@@ -9,8 +9,6 @@ async function bootstrap() {
cors: true,
});
app.enableCors();
app.enableCors({
origin: "*",
methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS",
@@ -18,7 +16,7 @@ async function bootstrap() {
});
app.use(
["/docs", "/docs-json", "/swagger"],
["/docs"],
basicAuth({
challenge: true,
users: {
@@ -56,4 +54,4 @@ async function bootstrap() {
await app.listen(process.env.PORT);
}
bootstrap();
void bootstrap();