Skip to content

Commit

Permalink
delete
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x authored May 28, 2024
1 parent 955aff9 commit a903386
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/hono-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,23 +172,6 @@ class Hono<E extends Env = Env, S extends Schema = {}, BasePath extends string =
private notFoundHandler: NotFoundHandler = notFoundHandler
private errorHandler: ErrorHandler = errorHandler

/**
* `.route()` allows grouping other Hono instance in routes.
* @see {@link https://hono.dev/api/routing#grouping}
*
* @param {string} path - base Path
* @param {Hono} app - other Hono instance
* @returns {Hono} routed Hono instnace
*
* @example
* ```ts
* const app = new Hono()
* const app2 = new Hono()
*
* app2.get("/user", (c) => c.text("user"))
* app.route("/api", app2) // GET /api/user
* ```
*/
route<
SubPath extends string,
SubEnv extends Env,
Expand Down

0 comments on commit a903386

Please sign in to comment.