b
This commit is contained in:
7
src/routes/match/root.ts
Normal file
7
src/routes/match/root.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createHonoRoute, routeImporter } from "../../util/import.ts";
|
||||
|
||||
export const route = createHonoRoute('/match');
|
||||
|
||||
await routeImporter(route.app, 'src/routes/match/', [
|
||||
'routes'
|
||||
]);
|
||||
10
src/routes/match/routes/player.ts
Normal file
10
src/routes/match/routes/player.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { authenticate } from "../../../util/api.ts";
|
||||
import { createHonoRoute } from "../../../util/import.ts";
|
||||
|
||||
export const route = createHonoRoute("/player");
|
||||
|
||||
route.app.use(authenticate);
|
||||
|
||||
route.app.post('/login', async c => {
|
||||
return c.status(200);
|
||||
});
|
||||
Reference in New Issue
Block a user