Skip to content

Commit e682b66

Browse files
refactor: won't need user routes till long time later
1 parent 803d3c5 commit e682b66

5 files changed

Lines changed: 33 additions & 33 deletions

File tree

apps/backend/src/v1/guild/router.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

apps/backend/src/v1/guild/views.ts

Whitespace-only changes.

apps/backend/src/v1/user/router.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { getUserPoints } from "@v1/user/service";
2+
import { Hono } from "hono";
3+
import { describeRoute, resolver, validator } from "hono-openapi";
4+
import { z } from "zod";
5+
6+
const app = new Hono();
7+
8+
const UserPoints = z.object({ points: z.int() });
9+
10+
// app.get(
11+
// "/:user_id",
12+
// describeRoute({
13+
// description: "Get a user's profile",
14+
// responses: {
15+
// 200: {
16+
// description: "Successful response",
17+
// content: {
18+
// "application/json": {
19+
// // schema: resolver(UserPoints),
20+
// },
21+
// },
22+
// },
23+
// },
24+
// }),
25+
// async (c) => {
26+
// const { user_id } = c.req.param();
27+
// // return c.json({ points: await getUserPoints( user_id) });
28+
// },
29+
// );
30+
// Get a guild's leaderboard
31+
// app.get("/:guild_id", c);
32+
33+
export default app;

0 commit comments

Comments
 (0)