init router

This commit is contained in:
2024-10-16 00:47:30 +08:00
commit 733677f3f3
32 changed files with 2185 additions and 0 deletions

21
src/index.ts Normal file
View File

@@ -0,0 +1,21 @@
export { Route, QueryRouter, QueryRouterServer } from './route.ts';
export { Connect, QueryConnect } from './connect.ts';
export type { RouteContext, RouteOpts } from './route.ts';
export type { Run } from './route.ts';
export { Server, handleServer } from './server/index.ts';
/**
* 自定义错误
*/
export { CustomError } from './result/error.ts';
/**
* 返回结果
*/
export { Result } from './result/index.ts';
export { Rule, Schema, createSchema } from './validator/index.ts';
export { App } from './app.ts';