Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x | const { Router } = require('express')
const router = Router()
module.exports = (crowi, app, form) => {
const { Me } = crowi.controllers
const { LoginRequired } = crowi.middlewares
router.use('/me*', LoginRequired)
router.get('/me', Me.index)
router.get('/me/password', Me.password)
router.get('/me/apiToken', Me.apiToken)
router.get('/me/auth/third-party', Me.authThirdParty)
router.post('/me', form.me.user, Me.index)
router.post('/me/password', form.me.password, Me.password)
router.post('/me/apiToken', form.me.apiToken, Me.apiToken)
router.get('/me/notifications', Me.notifications)
router.post('/me/picture/delete', Me.deletePicture)
router.post('/me/auth/google', Me.authGoogle)
router.get('/me/auth/google/callback', Me.authGoogleCallback)
router.post('/me/auth/github', Me.authGitHub)
router.get('/me/auth/github/callback', Me.authGitHubCallback)
return router
}
|