├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── .vscode └── launch.json ├── LICENSE.txt ├── README.md ├── jest.config.json ├── package.json ├── src ├── Router.ts ├── index.ts ├── middlewares │ ├── bodyparser.ts │ └── index.ts └── types │ ├── Context.ts │ ├── Handler.ts │ ├── Next.ts │ ├── Params.ts │ └── index.ts ├── test └── router.spec.ts ├── tsconfig.json ├── webpack.config.js └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/jest.config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/package.json -------------------------------------------------------------------------------- /src/Router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/src/Router.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/middlewares/bodyparser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/src/middlewares/bodyparser.ts -------------------------------------------------------------------------------- /src/middlewares/index.ts: -------------------------------------------------------------------------------- 1 | export * from './bodyparser'; 2 | -------------------------------------------------------------------------------- /src/types/Context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/src/types/Context.ts -------------------------------------------------------------------------------- /src/types/Handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/src/types/Handler.ts -------------------------------------------------------------------------------- /src/types/Next.ts: -------------------------------------------------------------------------------- 1 | export type Next = () => Promise; 2 | -------------------------------------------------------------------------------- /src/types/Params.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/src/types/Params.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /test/router.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/test/router.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/tsconfig.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markusahlstrand/cloudworker-router/HEAD/yarn.lock --------------------------------------------------------------------------------