-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): update Swagger config/version
- Loading branch information
1 parent
d546e67
commit 444fe49
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import type { INestApplication } from "@nestjs/common"; | ||
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger"; | ||
import { DocumentBuilder, OpenAPIObject, SwaggerModule } from "@nestjs/swagger"; | ||
|
||
export function provideSwagger(app: INestApplication): void { | ||
const config = new DocumentBuilder() | ||
.setLicense("GPL-3.0", "https://www.gnu.org/licenses/gpl-3.0.html") | ||
.setTitle("Chaotic-AUR API") | ||
.setDescription("Chaotic-AUR API specification") | ||
.setVersion("1.0") | ||
.addTag("chaotic-aur") | ||
.setContact("Chaotic-AUR developers", "https://aur.chaotic.cx/about", "[email protected]") | ||
.build(); | ||
const documentFactory = () => SwaggerModule.createDocument(app, config); | ||
const documentFactory = (): OpenAPIObject => SwaggerModule.createDocument(app, config); | ||
SwaggerModule.setup("api", app, documentFactory); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.