CRUD

Express: yarn add express
Router: yarn add router
Fs: yarn add fs
Nodemon: yarn add nodemon
Run:
Yarn dev
ou
yarn nodemon src/index

Methods

Method Get Url: http://localhost:3333/

Method Post Url: http://localhost:3333/ JSON: {"day":"15/02/2020","intervals":[{"start":"14:00","end":"15:00"},{"start":"15:00","end":"16:00"}]}

Method Put Url: http://localhost:3333/15-02-2020 JSON: [{"start":"19:00","end":"20:00"},{"start":"21:00","end":"22:00"},{"start":"22:00","end":"23:00"}]

Method Delete Url: http://localhost:3333/15-02-2020