parent
454309278e
commit
729f2d7240
@ -14,6 +14,14 @@ export function generateSpec(storage: MetadataArgsStorage, schemas) {
|
|||||||
{
|
{
|
||||||
components: {
|
components: {
|
||||||
schemas,
|
schemas,
|
||||||
|
"securitySchemes": {
|
||||||
|
"AuthToken": {
|
||||||
|
"type": "apiKey",
|
||||||
|
"in": "query",
|
||||||
|
"name": "key",
|
||||||
|
description: "A simple api key. See the README's env section for more details."
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
info: {
|
info: {
|
||||||
description: "The the API for the LfK! document server.",
|
description: "The the API for the LfK! document server.",
|
||||||
|
@ -11,6 +11,7 @@ import { PdfCreator } from '../PdfCreator';
|
|||||||
*/
|
*/
|
||||||
@JsonController()
|
@JsonController()
|
||||||
@Authorized()
|
@Authorized()
|
||||||
|
@OpenAPI({ security: [{ "AuthToken": [] }] })
|
||||||
export class PdfController {
|
export class PdfController {
|
||||||
private pdf: PdfCreator = new PdfCreator();
|
private pdf: PdfCreator = new PdfCreator();
|
||||||
private initialized: boolean = false;
|
private initialized: boolean = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user