Skip to content

Commit

Permalink
[MOD] 곡 상세+나의 뮤멘트 API - request-body추가됨에 따라 POST로 http method 변경 #145
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchaeeun3447 committed Feb 5, 2023
1 parent d22b4ad commit c66f196
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/controllers/MusicController.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/routes/MusicRouter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/routes/MusicRouter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/controllers/MusicController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import constant from '../modules/serviceReturnConstant';
import { MusicCreateDto } from '../interfaces/music/MusicCreateDto';

/**
* @ROUTE GET /:musicId/
* @ROUTE POST /:musicId/
* @DESC 곡 상세보기 뷰에서 music 정보와 나의 뮤멘트 정보 가져오기
*/
const getMusicAndMyMument = async (req: Request, res: Response) => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/MusicRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const router: Router = Router();

router.get('/search', MusicController.getMusicListBySearch);

router.get('/:musicId', [
router.post('/:musicId', [
param('musicId').toInt().isInt(),
], auth, MusicController.getMusicAndMyMument);

Expand Down

0 comments on commit c66f196

Please sign in to comment.