mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
13 lines
539 B
JavaScript
13 lines
539 B
JavaScript
var auth = require('../controllers/auth');
|
|
var express = require('express');
|
|
var router = new express.Router();
|
|
|
|
/* auth.auth*/
|
|
auth.setupPassport(router); //FIXME make this consistent with the others
|
|
router.post('/api/v2/register', auth.registerUser);
|
|
router.post('/api/v2/user/auth/local', auth.loginLocal);
|
|
router.post('/api/v2/user/auth/facebook', auth.loginFacebook);
|
|
router.post('/api/v2/user/reset-password', auth.resetPassword);
|
|
router.post('/api/v2/user/change-password', auth.auth, auth.changePassword);
|
|
|
|
module.exports = router; |