mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 05:09:26 +00:00
feat: add get /decks v2 which does not return maxCardsCount. Add /decks/min-max-cards to use instead. /v1/decks is now deprecated
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Logger } from '@nestjs/common'
|
||||
import { Logger, VersioningType } from '@nestjs/common'
|
||||
import { NestFactory } from '@nestjs/core'
|
||||
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'
|
||||
import * as cookieParser from 'cookie-parser'
|
||||
@@ -16,7 +16,10 @@ async function bootstrap() {
|
||||
})
|
||||
app.use(cookieParser())
|
||||
|
||||
app.setGlobalPrefix('v1')
|
||||
app.enableVersioning({
|
||||
type: VersioningType.URI,
|
||||
defaultVersion: '1',
|
||||
})
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle('Flashcards')
|
||||
.setDescription('Flashcards API')
|
||||
|
||||
Reference in New Issue
Block a user