Complete Project Example
A full BurgerAPI project includes:
- Entry:
src/index.tswithnew Burger({ apiDir, globalMiddleware, title, version })andserve(4000). - Routes:
route.tsfiles underapiDirwith GET/POST/etc. and optionalschema,middleware,openapi. - Middleware: In
ecosystem/middleware/or your own folder, imported and passed asglobalMiddlewareor per-route.
Use burger-api create my-app to scaffold this structure. For step-by-step builds, see the Blog API and Todo API tutorials.