├── .editorconfig ├── .gitignore ├── .vscode └── settings.json ├── README.md ├── jest.config.js ├── nodemon.json ├── package.json ├── setupTest.js ├── src ├── __tests__ │ ├── middlewares │ │ ├── checksCreateTodosUserAvailability.spec.js │ │ ├── checksExistsUserAccount.spec.js │ │ ├── checksTodoExists.spec.js │ │ └── findUserById.spec.js │ ├── todos.spec.js │ └── users.spec.js ├── index.js └── server.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/jest.config.js -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/package.json -------------------------------------------------------------------------------- /setupTest.js: -------------------------------------------------------------------------------- 1 | jest.setTimeout(400); -------------------------------------------------------------------------------- /src/__tests__/middlewares/checksCreateTodosUserAvailability.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/__tests__/middlewares/checksCreateTodosUserAvailability.spec.js -------------------------------------------------------------------------------- /src/__tests__/middlewares/checksExistsUserAccount.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/__tests__/middlewares/checksExistsUserAccount.spec.js -------------------------------------------------------------------------------- /src/__tests__/middlewares/checksTodoExists.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/__tests__/middlewares/checksTodoExists.spec.js -------------------------------------------------------------------------------- /src/__tests__/middlewares/findUserById.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/__tests__/middlewares/findUserById.spec.js -------------------------------------------------------------------------------- /src/__tests__/todos.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/__tests__/todos.spec.js -------------------------------------------------------------------------------- /src/__tests__/users.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/__tests__/users.spec.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/index.js -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/src/server.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-template-trabalhando-com-middlewares/HEAD/yarn.lock --------------------------------------------------------------------------------