Skip to content

Commit 613fc6e

Browse files
added json endpoint
1 parent 2e76393 commit 613fc6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/widget/widget.controller.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,9 @@ export class WidgetController {
4343
main_color: config.colors.main_text
4444
};
4545
}
46+
47+
@Get('/json')
48+
async json() {
49+
return await this.widgetService.generate();
50+
}
4651
}

0 commit comments

Comments
 (0)