유희정

modify error

1 var express = require('express'); 1 var express = require('express');
2 var router = express.Router(); 2 var router = express.Router();
3 var gcal = require('google-calendar'); 3 var gcal = require('google-calendar');
4 -const { localISOdt } = require('local-iso-dt');
5 var accessToken; 4 var accessToken;
6 5
7 var id; 6 var id;
...@@ -65,6 +64,10 @@ router.post('/remove', function(req, res, next) { ...@@ -65,6 +64,10 @@ router.post('/remove', function(req, res, next) {
65 64
66 }); 65 });
67 66
67 +router.get('/kakao', function(req,res,next){
68 + console.log("success");
69 +});
70 +
68 var timestamp = function (date) { 71 var timestamp = function (date) {
69 var pad = function (amount, width) { 72 var pad = function (amount, width) {
70 var padding = ""; 73 var padding = "";
...@@ -85,6 +88,7 @@ var timestamp = function (date) { ...@@ -85,6 +88,7 @@ var timestamp = function (date) {
85 + ":" + pad(Math.abs(offset) % 60, 2); 88 + ":" + pad(Math.abs(offset) % 60, 2);
86 } 89 }
87 90
91 +
88 module.exports = router; 92 module.exports = router;
89 93
90 //timestamp(new Date(1983, 4, 9, 11, 5, 17)); 94 //timestamp(new Date(1983, 4, 9, 11, 5, 17));
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel='stylesheet' href='/stylesheets/style.css' /> 4 <link rel='stylesheet' href='/stylesheets/style.css' />
5 + <a href="/events/kakao">kakao login</a>
5 </head> 6 </head>
6 <body> 7 <body>
7 <h1><%= id %></h1> 8 <h1><%= id %></h1>
......