Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit bd4ced6

Browse files
committed
refactor(server.js): add console.log
1 parent 9c4993b commit bd4ced6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ app.post('/login', (req, res) => {
102102
console.log('login succeeded')
103103

104104
// カスタムレスポンスヘッダーをセットします
105+
const id = uuid()
106+
console.log('uuid:', id)
105107
res.set({
106-
'access-token': uuid()
108+
'access-token': id
107109
})
108110

109111
res.send(
@@ -150,8 +152,10 @@ app.post('/login-check', (req, res) => {
150152
console.log('login again')
151153

152154
// カスタムレスポンスヘッダーをセットします
155+
const id = uuid()
156+
console.log('uuid:', id)
153157
res.set({
154-
'access-token': uuid()
158+
'access-token': id
155159
})
156160

157161
res.send(

0 commit comments

Comments
 (0)