Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -52,6 +52,8 @@ router.post('/', function(req, res, next) { | ... | @@ -52,6 +52,8 @@ router.post('/', function(req, res, next) { |
52 | } | 52 | } |
53 | }); | 53 | }); |
54 | }); | 54 | }); |
55 | + | ||
56 | +//이벤트 추가 | ||
55 | router.post('/add', function(req, res, next) { | 57 | router.post('/add', function(req, res, next) { |
56 | var sday = req.body.startDay.split('-'); | 58 | var sday = req.body.startDay.split('-'); |
57 | var stime = req.body.startTime.split(':'); | 59 | var stime = req.body.startTime.split(':'); |
... | @@ -77,6 +79,7 @@ router.post('/add', function(req, res, next) { | ... | @@ -77,6 +79,7 @@ router.post('/add', function(req, res, next) { |
77 | 79 | ||
78 | }); | 80 | }); |
79 | 81 | ||
82 | +//이벤트 삭제 | ||
80 | router.post('/remove', function(req, res, next) { | 83 | router.post('/remove', function(req, res, next) { |
81 | var eId = req.body.eId; | 84 | var eId = req.body.eId; |
82 | gcal(googleToken).events.delete(id, eId, function(err, data) { | 85 | gcal(googleToken).events.delete(id, eId, function(err, data) { |
... | @@ -130,6 +133,7 @@ var timestamp = function (date) { | ... | @@ -130,6 +133,7 @@ var timestamp = function (date) { |
130 | } | 133 | } |
131 | }; | 134 | }; |
132 | 135 | ||
136 | + //이벤트 시작 10분 전 동안 카카오톡 나에게메시지 보내기 | ||
133 | function sendMessage(event,minute){ | 137 | function sendMessage(event,minute){ |
134 | let template_objectObj = { | 138 | let template_objectObj = { |
135 | "object_type" : 'text', | 139 | "object_type" : 'text', | ... | ... |
-
Please register or login to post a comment