parent
7e4ce00c30
commit
5a4a6cdcef
@ -1,8 +1,8 @@
|
|||||||
|
import { validationMetadatasToSchemas } from "class-validator-jsonschema";
|
||||||
import { Application } from "express";
|
import { Application } from "express";
|
||||||
import * as swaggerUiExpress from "swagger-ui-express";
|
|
||||||
import { getMetadataArgsStorage } from "routing-controllers";
|
import { getMetadataArgsStorage } from "routing-controllers";
|
||||||
import { routingControllersToSpec } from "routing-controllers-openapi";
|
import { routingControllersToSpec } from "routing-controllers-openapi";
|
||||||
import { validationMetadatasToSchemas } from "class-validator-jsonschema";
|
import * as swaggerUiExpress from "swagger-ui-express";
|
||||||
|
|
||||||
export default async (app: Application) => {
|
export default async (app: Application) => {
|
||||||
const storage = getMetadataArgsStorage();
|
const storage = getMetadataArgsStorage();
|
||||||
@ -17,6 +17,13 @@ export default async (app: Application) => {
|
|||||||
{
|
{
|
||||||
components: {
|
components: {
|
||||||
schemas,
|
schemas,
|
||||||
|
"securitySchemes": {
|
||||||
|
"AuthToken": {
|
||||||
|
"type": "http",
|
||||||
|
"scheme": "bearer",
|
||||||
|
"bearerFormat": "JWT"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
info: {
|
info: {
|
||||||
description: "The the backend API for the LfK! runner system.",
|
description: "The the backend API for the LfK! runner system.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user