"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const core_1 = require("@nestjs/core");
const app_module_1 = require("./app.module");
const auth_guard_1 = require("./core/auth.guard");
async function bootstrap() {
    const app = await core_1.NestFactory.create(app_module_1.AppModule);
    app.setGlobalPrefix('api');
    app.useGlobalGuards(app.get(auth_guard_1.AuthGuard));
    await app.listen(process.env.PORT ? Number(process.env.PORT) : 3000);
    console.log(`Application is running on: ${await app.getUrl()}`);
}
bootstrap();
