stable: finalized GIS aesthetics and Syria/Jordan routing synchronization
This commit is contained in:
@@ -9,18 +9,20 @@ async function bootstrap() {
|
||||
// تفعيل تبادل الموارد مع الواجهة الأمامية
|
||||
app.enableCors();
|
||||
|
||||
// Set global API prefix
|
||||
app.setGlobalPrefix('api');
|
||||
|
||||
// Swagger Documentation Setup
|
||||
// إعداد توثيق API (Swagger)
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle('Jordan Map Platform API')
|
||||
.setDescription('Backend API for map services, routing, and driver telemetry for Jordan')
|
||||
.setVersion('1.0')
|
||||
.addTag('maps')
|
||||
.addTag('telemetry')
|
||||
.addTag('telemetry') // Corrected line to add 'telemetry' tag
|
||||
.build();
|
||||
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('api', app, document);
|
||||
SwaggerModule.setup('docs', app, document);
|
||||
|
||||
const port = process.env.API_PORT || 3000;
|
||||
await app.listen(port);
|
||||
|
||||
Reference in New Issue
Block a user