Skip to content

Commit

Permalink
added json endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Jan 21, 2025
1 parent 2e76393 commit 613fc6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widget/widget.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ export class WidgetController {
main_color: config.colors.main_text
};
}

@Get('/json')
async json() {
return await this.widgetService.generate();
}
}

0 comments on commit 613fc6e

Please sign in to comment.