feat(database): add users routes

This commit is contained in:
frab1t 2019-07-04 08:55:15 +02:00
parent 2a50aeda4b
commit 085e8c1fbd
1 changed files with 10 additions and 0 deletions

10
src/routes/users.js Normal file
View File

@ -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;