-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
296 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
import express from 'express'; | ||
import * as UserController from '../controller/user.controller'; | ||
|
||
const router = express.Router(); | ||
|
||
router.post('/'); // user 생성 | ||
router.get('/:userId'); // user 조회 | ||
router.post('/',UserController.createUser); // user 생성 | ||
router.put('/lastSeenMeme',UserController.updateLastSeenMeme); // user가 본 meme 업데이트 | ||
|
||
router.get('/:userId/save'); // user가 저장한 meme 조회 | ||
|
||
router.post('/reaction',UserController.createMemeReaction); // user의 reaction 생성 | ||
router.post('/save',UserController.createMemeSave); // user의 save 생성 | ||
router.post('/share',UserController.createMemeShare); // user의 share 생성 | ||
|
||
|
||
router.delete('/reaction',UserController.deleteMemeReaction); // user의 reaction 삭제 | ||
router.delete('/save',UserController.deleteMemeSave); // user의 save 삭제 | ||
|
||
router.get('/:userId/lastSeenMeme', UserController.getLastSeenMeme); // user가 본 meme 조회 | ||
router.get('/:userId/save', UserController.getSavedMeme); // user가 저장한 meme 조회 | ||
|
||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters