routup
Version:
Routup is a minimalistic http based routing framework.
11 lines (10 loc) • 374 B
TypeScript
import type { MethodName } from '../constants';
import type { HookDefaultListener, HookErrorListener } from '../hook';
import type { Path } from '../path';
export type HandlerBaseConfig = {
method?: Uppercase<MethodName> | Lowercase<MethodName>;
path?: Path;
onError?: HookErrorListener;
onBefore?: HookDefaultListener;
onAfter?: HookDefaultListener;
};