Skip to content

Commit

Permalink
chore: パス末尾のスラッシュを削除する (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
tufusa authored Oct 24, 2024
1 parent 042687c commit b65e761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/kcms/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ MIT License.
*/
import { Hono } from 'hono';
import { cors } from 'hono/cors';
import { trimTrailingSlash } from 'hono/trailing-slash';
import { matchHandler } from './match/main';
import { teamHandler } from './team/main.js';

const app = new Hono();

app.use('*', cors());
app.use(trimTrailingSlash());
app.route('/', teamHandler);
app.route('/', matchHandler);

Expand Down

0 comments on commit b65e761

Please sign in to comment.