aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/web.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/routes/web.js b/routes/web.js
index ee07d85..8960bb3 100644
--- a/routes/web.js
+++ b/routes/web.js
@@ -1,10 +1,19 @@
const express = require('express');
const router = express.Router();
const postController = require('../controllers/post');
+const userController = require('../controllers/user');
router.get('/', postController.index);
router.get('/new-post', postController.create);
router.post('/new-post', postController.store);
router.get('/remove-post/:id', postController.destroy);
+router.get('/register', userController.registerView);
+router.get('/login', userController.loginView);
+
+router.post('/register', userController.register);
+router.post('/login', userController.login);
+
+router.get('/logout', userController.logout);
+
module.exports = router;