import { type Service } from "https://deno.land/x/hex@0.5.15/src/service/types.ts";
Type Parameters
TOptions extends ServiceOptions
Properties
internalApp: Application<ServiceState<TOptions>>
addMiddleware: (middleware: Middleware) => void
addRoute: <R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>>() => void
method: HttpMethods,
path: R,
...middlewares: [...RouterMiddleware<R, P, S>[], (ctx: RouterContext<R, P, S> | Context) => unknown] | [(ctx: Context) => unknown],
configureOptions: (configureOptionsFn: options.ConfigureOptionsFn<TOptions>) => Promise<void>