MCPcopy Index your code
hub / github.com/oakserver/oak / get

Method get

router.ts:933–948  ·  view source on GitHub ↗
(
    nameOrPath: string,
    pathOrMiddleware: string | RouterMiddleware<string, P, S>,
    ...middleware: RouterMiddleware<string, P, S>[]
  )

Source from the content-addressed store, hash-verified

931 ...middleware: RouterMiddleware<string, P, S>[]
932 ): Router<S extends RS ? S : (S & RS)>;
933 get<
934 P extends RouteParams<string> = RouteParams<string>,
935 S extends State = RS,
936 >(
937 nameOrPath: string,
938 pathOrMiddleware: string | RouterMiddleware<string, P, S>,
939 ...middleware: RouterMiddleware<string, P, S>[]
940 ): Router<S extends RS ? S : (S & RS)> {
941 this.#useVerb(
942 nameOrPath,
943 pathOrMiddleware as (string | RouterMiddleware<string>),
944 middleware as RouterMiddleware<string>[],
945 ["GET"],
946 );
947 return this;
948 }
949
950 /** Register named middleware for the specified routes when the `HEAD`,
951 * method is requested. */

Callers 15

fnFunction · 0.95
fnFunction · 0.95
fnFunction · 0.95
redirectMethod · 0.80
fnFunction · 0.80
isUpgradableMethod · 0.80
ipsMethod · 0.80
urlMethod · 0.80
constructorMethod · 0.80
acceptsLanguagesMethod · 0.80
fnFunction · 0.80
fnFunction · 0.80

Calls 1

#useVerbMethod · 0.95

Tested by 9

fnFunction · 0.76
fnFunction · 0.76
fnFunction · 0.76
fnFunction · 0.64
fnFunction · 0.64
fnFunction · 0.64
fnFunction · 0.64
fnFunction · 0.64
fetchFunction · 0.64