Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Server
Merge requests
!116
feat(routing): update global routing of api
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat(routing): update global routing of api
feat/poc-pwa
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hugo SUBTIL
requested to merge
feat/poc-pwa
into
dev
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
f7fd0113
1 commit,
3 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main.ts
+
4
−
3
Options
@@ -7,13 +7,14 @@ async function bootstrap() {
const
app
=
await
NestFactory
.
create
(
AppModule
);
app
.
useGlobalPipes
(
new
ValidationPipe
());
const
options
=
new
DocumentBuilder
()
.
setTitle
(
'
RAM
'
)
.
setDescription
(
'
RAM API descrip
tion
'
)
.
setTitle
(
`Res'in`
)
.
setDescription
(
`Res'in API documenta
tion
`
)
.
setVersion
(
'
1.0
'
)
.
addBearerAuth
({
type
:
'
http
'
,
scheme
:
'
bearer
'
,
bearerFormat
:
'
JWT
'
},
'
JWT
'
)
.
build
();
const
document
=
SwaggerModule
.
createDocument
(
app
,
options
);
SwaggerModule
.
setup
(
'
api
'
,
app
,
document
);
SwaggerModule
.
setup
(
'
doc
'
,
app
,
document
);
app
.
setGlobalPrefix
(
'
api
'
);
await
app
.
listen
(
3000
);
}
bootstrap
();
Loading