Interface RouteShorthandMethod<RawServer, RawRequest, RawReply, TypeProvider, Logger>
interface RouteShorthandMethod<RawServer, RawRequest, RawReply, TypeProvider, Logger> { <RouteGeneric, ContextConfig, const SchemaCompiler>(path,
opts,
handler): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>; <RouteGeneric, ContextConfig, const SchemaCompiler>(path,
handler): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>; <RouteGeneric, ContextConfig, const SchemaCompiler>(path,
opts): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>; } - RouteShorthandMethod<RouteGeneric, ContextConfig, const SchemaCompiler>(path, opts, handler): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>
Parameters
- path: string
- opts: RouteShorthandOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
- handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
- RouteShorthandMethod<RouteGeneric, ContextConfig, const SchemaCompiler>(path, handler): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>
- RouteShorthandMethod<RouteGeneric, ContextConfig, const SchemaCompiler>(path, opts): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>
Fastify Router Shorthand method type that is similar to the Express/Restify approach