mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
e53a8648b4
Signed-off-by: David Mehren <git@herrmehren.de>
11 lines
372 B
TypeScript
11 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()
|