Refactor code to use consistent tab spacing

Replaced mixed spaces and tabs with consistent tab spacing across multiple files for better code readability and maintenance. Adjusted import statements and string literals formatting to maintain coherence.
This commit is contained in:
Mathis H (Avnyr) 2024-10-15 16:51:12 +02:00
parent 6f9d25a58b
commit 3c31223293
Signed by: Mathis
GPG Key ID: DD9E0666A747D126
4 changed files with 213 additions and 215 deletions

View File

@ -1,17 +1,15 @@
import { Logger } from "@nestjs/common"; import { Logger } from "@nestjs/common";
import { NestFactory } from "@nestjs/core"; import { NestFactory } from "@nestjs/core";
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
import helmet from "helmet"; import helmet from "helmet";
import { AppModule } from "./app/app.module"; import { AppModule } from "./app/app.module";
async function bootstrap() { async function bootstrap() {
const config = new DocumentBuilder() const config = new DocumentBuilder()
.setTitle('Fab Explorer') .setTitle("Fab Explorer")
.setDescription("Définition de l'api du FabLab Explorer") .setDescription("Définition de l'api du FabLab Explorer")
.setVersion('1.0') .setVersion("1.0")
.build(); .build();
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
@ -21,7 +19,7 @@ async function bootstrap() {
const port = process.env.PORT || 3000; const port = process.env.PORT || 3000;
const document = SwaggerModule.createDocument(app, config); const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, document); SwaggerModule.setup("api", app, document);
await app.listen(port); await app.listen(port);
Logger.log( Logger.log(