diff --git a/package-lock.json b/package-lock.json index e2394a9..3064f6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bordeaux-atis", - "version": "0.0.1", + "version": "0.1.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bordeaux-atis", - "version": "0.0.1", + "version": "0.1.3", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^9.0.0", diff --git a/package.json b/package.json index 006de2b..a477545 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bordeaux-atis", - "version": "0.0.1", + "version": "0.1.3", "description": "", "author": "", "private": true, diff --git a/src/app.controller.ts b/src/app.controller.ts index 0cdfe85..bec202b 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -4,6 +4,7 @@ import { AppService } from './app.service'; import { AtisDto } from './dto/atis.dto'; import { DataDto } from './dto/data.dto'; import { ErrorDto } from './dto/error.dto'; +import { AirportDto } from './dto/airport.dto'; @ApiTags('Api') @Controller() @@ -37,7 +38,7 @@ export class AppController { @ApiSecurity('X-API-KEY') @ApiParam({ name: 'icao', type: String, example: 'LFBD', required: true }) - @ApiOkResponse({ status: 200, type: DataDto }) + @ApiOkResponse({ status: 200, type: AirportDto }) @Get('/sid/:icao') sid(@Param('icao') icao: any, @Res() res: any) { return this.appService.sid(icao, res); @@ -45,7 +46,7 @@ export class AppController { @ApiSecurity('X-API-KEY') @ApiParam({ name: 'icao', type: String, example: 'LFBH', required: true }) - @ApiOkResponse({ status: 200, type: DataDto }) + @ApiOkResponse({ status: 200, type: AirportDto }) @Get('/star/:icao') star(@Param('icao') icao: any, @Res() res: any) { return this.appService.star(icao, res); diff --git a/src/dto/airport.dto.ts b/src/dto/airport.dto.ts new file mode 100644 index 0000000..a15cb9c --- /dev/null +++ b/src/dto/airport.dto.ts @@ -0,0 +1,6 @@ +import { ApiProperty } from '@nestjs/swagger'; + +export class AirportDto { + @ApiProperty() + runway: Object +} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 42814d2..e7c609b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -21,6 +21,7 @@ async function bootstrap() { SwaggerModule.setup('docs', app, document, { customSiteTitle: 'Bordeaux Atis API', + customfavIcon: 'https://www.bordeaux.aeroport.fr/themes/custom/adbm_theme/favicon.ico', }); await app.listen(parseInt(process.env.PORT));