feat(tactical): add interactive Isochrone reachability analysis for hospitals and civil defense
This commit is contained in:
@@ -9,7 +9,7 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule, {
|
||||
logger: ['error', 'warn', 'log', 'debug', 'verbose'],
|
||||
});
|
||||
|
||||
|
||||
// Trust proxy for correct rate limiting behind Nginx / Cloudflare
|
||||
const httpAdapter = app.getHttpAdapter();
|
||||
if (httpAdapter && httpAdapter.getInstance && typeof httpAdapter.getInstance().set === 'function') {
|
||||
@@ -21,8 +21,8 @@ async function bootstrap() {
|
||||
|
||||
// 1. Strict Security Headers & Restricted CORS
|
||||
app.enableCors({
|
||||
origin: process.env.ALLOWED_ORIGINS
|
||||
? process.env.ALLOWED_ORIGINS.split(',')
|
||||
origin: process.env.ALLOWED_ORIGINS
|
||||
? process.env.ALLOWED_ORIGINS.split(',')
|
||||
: ['http://localhost:3204', 'http://localhost:5173', 'https://map-saas.intaleqapp.com'],
|
||||
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
|
||||
credentials: true,
|
||||
@@ -48,7 +48,7 @@ async function bootstrap() {
|
||||
.addTag('geocoding')
|
||||
.addTag('telemetry')
|
||||
.build();
|
||||
|
||||
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('docs', app, document);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import { TacticalService } from './tactical.service';
|
||||
@Controller('tactical')
|
||||
@UseGuards(ApiKeyGuard, TenantThrottlerGuard)
|
||||
export class TacticalController {
|
||||
constructor(private readonly tacticalService: TacticalService) {}
|
||||
constructor(private readonly tacticalService: TacticalService) { }
|
||||
|
||||
@Get('verify-license')
|
||||
@ApiOperation({ summary: 'Verify tactical clearance and military license' })
|
||||
|
||||
Reference in New Issue
Block a user