diff --git a/README.md b/README.md index b8f9640..3c811d2 100644 --- a/README.md +++ b/README.md @@ -77,17 +77,6 @@ const router = OneSchemaRouter.create({ request: z.object({ filter: z.string() }), response: z.object({ id: z.string(), message: z.string() }), }); - -// Be sure to expose your router's routes on a Koa app. -import Koa from 'koa'; - -const app = new Koa().use(router.middleware()); - -if (router.config.instrospection.router) { - app.use(router.config.introspection.router.middleware()); -} - -app.listen(); ``` Once you have routes declared, add implementations for each route. Enjoy perfect type inference and auto-complete for path parameters, query parameters, and the request body.