feat(tactical): add interactive Isochrone reachability analysis for hospitals and civil defense

This commit is contained in:
Hamza-Ayed
2026-08-18 15:17:37 +03:00
parent ac4a74d0e0
commit 3109d782d3
3 changed files with 489 additions and 8 deletions
+4 -4
View File
@@ -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);
+1 -1
View File
@@ -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' })