mirror of https://github.com/franjsco/tick3t-api
feat(database): add users routes
This commit is contained in:
parent
2a50aeda4b
commit
085e8c1fbd
|
@ -0,0 +1,10 @@
|
||||||
|
const express = require('express');
|
||||||
|
|
||||||
|
const router = express.Router();
|
||||||
|
const userController = require('../controllers/users');
|
||||||
|
|
||||||
|
router.post('/register', userController.create);
|
||||||
|
|
||||||
|
router.post('/login', userController.authenticate);
|
||||||
|
|
||||||
|
module.exports = router;
|
Loading…
Reference in New Issue