Skip to content

Commit 48d2adc

Browse files
authored
refactor(hono-base): use object abbreviation notation (#3640)
1 parent 4598d7a commit 48d2adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hono-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class Hono<E extends Env = Env, S extends Schema = {}, BasePath extends string =
377377
#addRoute(method: string, path: string, handler: H) {
378378
method = method.toUpperCase()
379379
path = mergePath(this._basePath, path)
380-
const r: RouterRoute = { path: path, method: method, handler: handler }
380+
const r: RouterRoute = { path, method, handler }
381381
this.router.add(method, path, [handler, r])
382382
this.routes.push(r)
383383
}

0 commit comments

Comments
 (0)