import { RequestHandler } from "../type/request";
import router from "../routers/router";
const RegistHandler = (method: "get" | "post" | "options", url: string ,handler: RequestHandler<any, any>) => {
    router[method](url, handler as any);
}

export { RegistHandler };
