Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/#23 스터디 그룹을 위한 CRUD 기능 구현 #28

Merged
merged 9 commits into from
Sep 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
✨ 스터디 그룹 CRUD 라우터 작성 및 app.js에 추가
  • Loading branch information
ChanHoLee275 committed Sep 23, 2021
commit 99a9572e631042379f26015ad6f68d2f32ac9b93
2 changes: 2 additions & 0 deletions backend/app.js
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ require("dotenv").config();
const indexRouter = require('./src/routes/index');
const userRouter = require('./src/routes/user');
const authRouter = require('./src/routes/auth');
const teamRouter = require('./src/routes/team');

const app = express();

@@ -29,5 +30,6 @@ require('./src/configs/passport')();
app.use('/', indexRouter);
app.use('/user', userRouter);
app.use('/auth', authRouter);
app.use('/study',teamRouter);

module.exports = app;
13 changes: 13 additions & 0 deletions backend/src/routes/team.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const {createTeam, deleteTeam, updateTeam, searchTeams} = require("../services/team/team");
const express = require('express');
const router = express.Router();

router.get('/',searchTeams);

router.post('/',createTeam);

router.put('/:teamId',updateTeam);

router.delete('/:teamId',deleteTeam);

module.exports = router;