-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Ndevu12/ft-apply
ft apply
- Loading branch information
Showing
12 changed files
with
329 additions
and
36 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,26 +1,17 @@ | ||
import { Router } from 'express'; | ||
import AccountController from '../controllers/accountController'; | ||
import multer from '../middleware/Uploader' | ||
import { isAdminAuth, isAuth } from '../middleware/isAuth'; | ||
|
||
const router = Router(); | ||
|
||
// Get user information | ||
router.get('/:userId', AccountController.getUserInfo); | ||
|
||
// Update user information | ||
router.put('/:userId', multer.single('profileImage'), AccountController.updateUser); | ||
router.put('/', isAuth, multer.single('profileImage'), AccountController.updateUser); | ||
|
||
// Delete user | ||
router.delete('/:userId', AccountController.deleteUser); | ||
router.delete('/:userId', isAdminAuth, AccountController.deleteUser); | ||
|
||
export default router; | ||
|
||
// import { isAuth } from '../middleware/isAuth' | ||
|
||
// const router = Router(); | ||
|
||
// const accountControllers = new Account(); | ||
|
||
// router.get('/', isAuth, accountControllers.getAccountInfo); | ||
|
||
// 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
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