Skip to content

Commit

Permalink
rest
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrazasp committed Jul 9, 2024
1 parent 159a9e0 commit c4fdf39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/stats.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import { App, APP_TYPE } from './apps.service';
name: 'stats',
})
export default class StatsService extends moleculer.Service {
@Action()
@Action({
rest: 'GET /',
})
async all(ctx: Context<{ query?: any }>) {
const tagsById: { [key: string]: Tag } = await ctx.call('tags.find', { mapping: 'id' });

Expand Down

0 comments on commit c4fdf39

Please sign in to comment.