edited app module + main

This commit is contained in:
2025-08-28 12:05:48 +02:00
parent be3cd41521
commit df4e42ae66
2 changed files with 58 additions and 53 deletions
+3 -2
View File
@@ -25,12 +25,13 @@ async function bootstrap() {
const reflector = app.get(Reflector);
app.useGlobalGuards(
new AuthGuard(app.get(JwtService)),
new RolesGuard(reflector)
new AuthGuard(app.get(JwtService), app.get(Reflector)),
new RolesGuard(app.get(Reflector))
);
await app.listen(port);
console.log(`✅ P'titsPas API is running on: ${await app.getUrl()}`);
console.log(process.env.POSTGRES_DB);
}
bootstrap().catch((err) => {