Skip to content

Commit

Permalink
refactor(hono-base): use object abbreviation notation (#3640)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x authored Nov 7, 2024
1 parent 4598d7a commit 48d2adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hono-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class Hono<E extends Env = Env, S extends Schema = {}, BasePath extends string =
#addRoute(method: string, path: string, handler: H) {
method = method.toUpperCase()
path = mergePath(this._basePath, path)
const r: RouterRoute = { path: path, method: method, handler: handler }
const r: RouterRoute = { path, method, handler }
this.router.add(method, path, [handler, r])
this.routes.push(r)
}
Expand Down

0 comments on commit 48d2adc

Please sign in to comment.