Toggle navigation
Toggle navigation
This project
Loading...
Sign in
유희정
/
Reminder-Talk
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강정인
2019-12-04 17:13:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d13ed24a7757b55235bddfa59e882f16b2dece1f
d13ed24a
1 parent
cddef1be
THE END
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
routes/events.js
routes/events.js
View file @
d13ed24
...
...
@@ -52,6 +52,8 @@ router.post('/', function(req, res, next) {
}
});
});
//이벤트 추가
router
.
post
(
'/add'
,
function
(
req
,
res
,
next
)
{
var
sday
=
req
.
body
.
startDay
.
split
(
'-'
);
var
stime
=
req
.
body
.
startTime
.
split
(
':'
);
...
...
@@ -77,6 +79,7 @@ router.post('/add', function(req, res, next) {
});
//이벤트 삭제
router
.
post
(
'/remove'
,
function
(
req
,
res
,
next
)
{
var
eId
=
req
.
body
.
eId
;
gcal
(
googleToken
).
events
.
delete
(
id
,
eId
,
function
(
err
,
data
)
{
...
...
@@ -130,6 +133,7 @@ var timestamp = function (date) {
}
};
//이벤트 시작 10분 전 동안 카카오톡 나에게메시지 보내기
function
sendMessage
(
event
,
minute
){
let
template_objectObj
=
{
"object_type"
:
'text'
,
...
...
Please
register
or
login
to post a comment