{"size": 701, "ext": "js", "max_stars_repo_path": "routes/task.route.js", "max_stars_repo_name": "JckXia/notjira", "max_stars_repo_stars_event_min_datetime": "2019-05-15T17:41:34.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-23T01:46:44.000Z", "max_issues_repo_path": "routes/task.route.js", "max_issues_repo_name": "JckXia/notjira", "max_issues_repo_issues_event_min_datetime": "2019-08-23T21:48:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T16:53:13.000Z", "max_forks_repo_path": "routes/task.route.js", "max_forks_repo_name": "JckXia/notjira", "max_forks_repo_forks_event_min_datetime": "2019-10-15T18:22:03.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-15T18:22:03.000Z"}
{"max_stars_count": 3, "max_issues_count": 18, "max_forks_count": 1, "avg_line_length": 38.9444444444, "max_line_length": 77, "alphanum_fraction": 0.7774607703}
const express=require('express');
const router=express.Router();
const task_controller=require('../controllers/task.controller.js');

//We will post to the github APIs, create the branch/data on github's side
//Once data is created and returned back, we will store it accordingly
//in our database.This way we wont have to do any creation action on our side
router.post('/task/create_task',task_controller.createTask);
router.get('/api/task/:taskId',task_controller.getTask);
router.get('/api/task/:repoName',task_controller.getAllTasks);
router.post('/api/task/delete_task',task_controller.deleteTask);

/*
 Below are API end points that we can use to work with References
*/

module.exports=router;
