mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Make AppController accept a path parameter
This commit is contained in:
parent
c83a2dba7e
commit
c3403ba724
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ export interface AppEnv extends HonoEnv {
|
||||||
|
|
||||||
type AppContext = Context<AppEnv>;
|
type AppContext = Context<AppEnv>;
|
||||||
type AppMiddleware = MiddlewareHandler<AppEnv>;
|
type AppMiddleware = MiddlewareHandler<AppEnv>;
|
||||||
type AppController = Handler<AppEnv, any, HonoInput, Response | Promise<Response>>;
|
type AppController<P extends string = any> = Handler<AppEnv, P, HonoInput, Response | Promise<Response>>;
|
||||||
|
|
||||||
const app = new Hono<AppEnv>({ strict: false });
|
const app = new Hono<AppEnv>({ strict: false });
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue