{"size": 613, "ext": "js", "max_stars_repo_path": "14-Full-Stack/01-Activities/07-ORM-To-Sequelize/Solved/routes/api-routes.js", "max_stars_repo_name": "sdimartino510/curriculum-runthrough", "max_stars_repo_stars_event_min_datetime": "2020-12-08T16:56:29.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-17T18:24:38.000Z", "max_issues_repo_path": "14-Full-Stack/01-Activities/07-ORM-To-Sequelize/Solved/routes/api-routes.js", "max_issues_repo_name": "sdimartino510/curriculum-runthrough", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "14-Full-Stack/01-Activities/07-ORM-To-Sequelize/Solved/routes/api-routes.js", "max_forks_repo_name": "sdimartino510/curriculum-runthrough", "max_forks_repo_forks_event_min_datetime": "2020-12-14T17:38:24.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-13T00:12:17.000Z"}
{"max_stars_count": 8, "max_issues_count": null, "max_forks_count": 6, "avg_line_length": 21.1379310345, "max_line_length": 87, "alphanum_fraction": 0.6133768352}
// Dependencies

// Grabbing our models

const db = require('../models');

// Routes
module.exports = (app) => {
  // GET route for getting all of the todos
  app.get('/api/todos', (req, res) => {

  });

  // POST route for saving a new todo. You can create a todo using the data on req.body
  app.post('/api/todos', (req, res) => {

  });

  // DELETE route for deleting todos. You can access the todo's id in req.params.id
  app.delete('/api/todos/:id', (req, res) => {

  });

  // PUT route for updating todos. The updated todo will be available in req.body
  app.put('/api/todos', (req, res) => {

  });
};
