Showing
3 changed files
with
25 additions
and
1 deletions
... | @@ -5,7 +5,7 @@ const naverRouter = require('./router/naver.js') | ... | @@ -5,7 +5,7 @@ const naverRouter = require('./router/naver.js') |
5 | 5 | ||
6 | const naverRouter = require('./router/naver') | 6 | const naverRouter = require('./router/naver') |
7 | const kakaoRouter = require('./router/kakao') | 7 | const kakaoRouter = require('./router/kakao') |
8 | - | 8 | +const programmersRouter = require('./router/programmers') |
9 | 9 | ||
10 | const app = express(); | 10 | const app = express(); |
11 | 11 | ||
... | @@ -17,6 +17,7 @@ const server = app.listen(3000,()=>{ | ... | @@ -17,6 +17,7 @@ const server = app.listen(3000,()=>{ |
17 | 17 | ||
18 | app.use('/naver', naverRouter) | 18 | app.use('/naver', naverRouter) |
19 | app.use('/kakao', kakaoRouter) | 19 | app.use('/kakao', kakaoRouter) |
20 | +app.use('/programmers', programmersRouter) | ||
20 | 21 | ||
21 | app.get('/', (req, res)=>{ | 22 | app.get('/', (req, res)=>{ |
22 | res.send("this is home!") | 23 | res.send("this is home!") | ... | ... |
router/programmers.js
0 → 100644
1 | +const express = require('express') | ||
2 | +const router = express.Router() | ||
3 | + | ||
4 | +const programmersFunction = require('./programmersFunction') | ||
5 | + | ||
6 | +router.get('/', (req, res, error)=>{ | ||
7 | + res.send("programmers home") | ||
8 | +}) | ||
9 | + | ||
10 | +router.get('/recruitment', async (req, res, error)=>{ | ||
11 | + res.send("this is programmers recruitment") | ||
12 | +}) | ||
13 | + | ||
14 | + | ||
15 | +module.exports = router | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment