diff --git a/src/widget/widget.controller.ts b/src/widget/widget.controller.ts index 2b96967..97b8526 100644 --- a/src/widget/widget.controller.ts +++ b/src/widget/widget.controller.ts @@ -43,4 +43,9 @@ export class WidgetController { main_color: config.colors.main_text }; } + + @Get('/json') + async json() { + return await this.widgetService.generate(); + } }