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 | 16x 16x 16x 16x 16x 16x 16x 16x 16x 16x 16x 16x | import { Router, Express } from 'express' import Crowi from 'server/crowi' const router = Router() export default (crowi: Crowi, app: Express, form) => { const { Login } = crowi.controllers const { ApplicationInstalled, CsrfVerify: csrf } = crowi.middlewares router.get('/login/error/:reason', Login.error) router.get('/login', ApplicationInstalled, Login.login) router.get('/register', ApplicationInstalled, Login.register) router.get('/login/invited', Login.invited) router.post('/login/activateInvited', form.invited, csrf, Login.invited) router.post('/login', form.login, csrf, Login.login) router.get('/login/google', Login.loginGoogle) router.get('/login/github', Login.loginGitHub) return router } |