Skip to content

Commit

Permalink
fix users router naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintsoii committed Oct 9, 2024
1 parent addc66c commit 199fc86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/router/v1/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { db } from '../../db/db';
import { users } from '../../db/schema';
import type { User } from '../../db/schema';

const users = new Hono();
const usersRouter = new Hono();

users.get('/', async c => {
usersRouter.get('/', async c => {
const foundUsers: User[] = await db.select().from(users);
return c.json({
users: foundUsers,
});
});

users.get('/rental-history', c => c.json({}));
usersRouter.get('/rental-history', c => c.json({}));

export default users;
export default usersRouter;

0 comments on commit 199fc86

Please sign in to comment.