mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
12 lines
372 B
TypeScript
12 lines
372 B
TypeScript
|
import { ValidationPipe } from '@nestjs/common'
|
||
|
import { NestFactory } from '@nestjs/core'
|
||
|
import { AppModule } from './app.module'
|
||
|
|
||
|
async function bootstrap () {
|
||
|
const app = await NestFactory.create(AppModule)
|
||
|
app.useGlobalPipes(new ValidationPipe({ forbidUnknownValues: true, skipMissingProperties: false, transform: true }))
|
||
|
await app.listen(3000)
|
||
|
}
|
||
|
|
||
|
bootstrap()
|