edited app module + main
This commit is contained in:
+3
-2
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user