Toggle navigation
Toggle navigation
This project
Loading...
Sign in
HyeonJun Jeon
/
Extended-Calendar
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
박시진
2022-06-05 07:19:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bfdf8fdcfca98cbce1f2d2e5569de99c10731abd
bfdf8fdc
1 parent
1367d540
[Modify]require login
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
server/routers/login.js
server/routers/login.js
View file @
bfdf8fd
const
express
=
require
(
"express"
);
const
router
=
express
.
Router
();
const
{
getPeed
,
getSubjects
,
login
}
=
require
(
"../libs/E_Campus.js"
);
//
const { getPeed, getSubjects, login } = require("../libs/E_Campus.js");
const
{
login
}
=
require
(
"../libs/E_Campus.js"
);
router
.
post
(
"/"
,
async
(
req
,
res
)
=>
{
console
.
log
(
`listened /login
${
req
.
body
.
id
}
${
req
.
body
.
pw
}
`
);
const
Info
=
await
login
(
req
.
body
.
id
,
req
.
body
.
pw
);
...
...
Please
register
or
login
to post a comment