Toggle navigation
Toggle navigation
This project
Loading...
Sign in
khusat
/
khusat-server
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
박기홍
2020-11-13 22:58:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
afdbc8d84226e07b3fb2a0b6a36e6fc615fe9a82
afdbc8d8
1 parent
7d157a7d
router edited
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
src/index.js
src/router/index.js
src/index.js
View file @
afdbc8d
...
...
@@ -4,6 +4,7 @@ const port = 3000;
const
mongoose
=
require
(
'mongoose'
);
const
bodyParser
=
require
(
'body-parser'
);
const
router
=
require
(
'./router'
)(
app
);
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
true
}));
app
.
use
(
bodyParser
.
json
());
...
...
@@ -15,6 +16,7 @@ db.once('open', function(){
console
.
log
(
"Connected to mongod server"
);
});
mongoose
.
connect
(
'mongodb://localhost/khusat'
);
app
.
listen
(
port
,
()
=>
{
...
...
src/router/index.js
View file @
afdbc8d
...
...
@@ -69,4 +69,14 @@ module.exports = function(app)
res
.
send
(
recommendedJob
);
});
app
.
post
(
'/addJobs'
,
async
(
req
,
res
,
next
)
=>
{
// 보직 추가하는 api
});
app
.
post
(
'/addQuestions'
,
async
(
req
,
res
,
next
)
=>
{
// 질문 추가하는 api
});
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment