{"size": 1050, "ext": "js", "max_stars_repo_path": "server/api/routes/schedule.js", "max_stars_repo_name": "naiqixiao/DRDB", "max_stars_repo_stars_event_min_datetime": "2020-03-31T03:20:48.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-01T14:39:04.000Z", "max_issues_repo_path": "server/api/routes/schedule.js", "max_issues_repo_name": "naiqixiao/DRDB", "max_issues_repo_issues_event_min_datetime": "2020-08-12T23:01:21.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-10T15:30:58.000Z", "max_forks_repo_path": "server/api/routes/schedule.js", "max_forks_repo_name": "naiqixiao/DRDB", "max_forks_repo_forks_event_min_datetime": "2021-07-22T19:10:09.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-03T12:03:59.000Z"}
{"max_stars_count": 3, "max_issues_count": 3, "max_forks_count": 2, "avg_line_length": 32.8125, "max_line_length": 73, "alphanum_fraction": 0.7647619048}
const express = require("express");
const router = express.Router();
const checkAuth = require("../middleware/check-auth");
const oAuth2 = require("../middleware/oAuth");

const ScheduleController = require("../controllers/schedule");

router.post("/add", checkAuth, ScheduleController.create);

router.get("/", checkAuth, ScheduleController.search);

router.get("/followups", checkAuth, ScheduleController.searchFollowUps);

router.get("/today", checkAuth, ScheduleController.today);

router.get("/tomorrow", checkAuth, ScheduleController.tomorrow);

router.get("/week", checkAuth, ScheduleController.week);

router.post("/", checkAuth, oAuth2, ScheduleController.update);

router.post("/remind", checkAuth, oAuth2, ScheduleController.remind);

router.post("/tyEmail", checkAuth, oAuth2, ScheduleController.tyEmail);

router.post("/complete", checkAuth, oAuth2, ScheduleController.complete);

router.delete("/", checkAuth, oAuth2, ScheduleController.delete);

router.post("/special", checkAuth, ScheduleController.special);

module.exports = router;