Skip to content

Commit

Permalink
Merge pull request #97 from ufabc-next/chore/refac-public-endpoint
Browse files Browse the repository at this point in the history
chore: simplify
  • Loading branch information
Joabesv authored Aug 23, 2024
2 parents 8af5eb4 + 8e5e279 commit 6e88778
Show file tree
Hide file tree
Showing 17 changed files with 397 additions and 409 deletions.
12 changes: 2 additions & 10 deletions apps/core/src/modules/Public/public.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { statusRoute } from './status/route.js';
import { summaryRoute } from './summary/route.js';
import { statsGeneralRoute } from './stats/general/general.route.js';
import { statsStudentRoute } from './stats/students/student.route.js';
import { statsDisciplinaRoute } from './stats/disciplinas/disciplinaStats.route.js';
import { publicStatsRoute } from './stats/stats.route.js';
import type { FastifyInstance } from 'fastify';

export async function publicModule(app: FastifyInstance) {
Expand All @@ -12,13 +10,7 @@ export async function publicModule(app: FastifyInstance) {
await app.register(statusRoute, {
prefix: '/public',
});
await app.register(statsGeneralRoute, {
prefix: '/public',
});
await app.register(statsStudentRoute, {
prefix: '/public',
});
await app.register(statsDisciplinaRoute, {
await app.register(publicStatsRoute, {
prefix: '/public',
});
}

This file was deleted.

This file was deleted.

This file was deleted.

96 changes: 0 additions & 96 deletions apps/core/src/modules/Public/stats/general/general.handlers.ts

This file was deleted.

13 changes: 0 additions & 13 deletions apps/core/src/modules/Public/stats/general/general.route.ts

This file was deleted.

6 changes: 0 additions & 6 deletions apps/core/src/modules/Public/stats/general/general.schema.ts

This file was deleted.

Loading

0 comments on commit 6e88778

Please sign in to comment.