@athenna/http
Version:
The Athenna Http server. Built on top of fastify.
16 lines (15 loc) • 419 B
TypeScript
/**
* @athenna/http
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import type { Context } from '#src/types/contexts/Context';
export interface MiddlewareContract {
/**
* Handle the request before going to the route handler.
*/
handle(ctx: Context): any | Promise<any>;
}