Skip to content

Commit

Permalink
edit require Router #16
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedsalah7 committed Oct 27, 2021
1 parent 2818cea commit 57615cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const express = require('express');
const router = require('express').Router();
const { notFoundError, serverError } = require('../controllers/errors');
const { getAllUsers, logout } = require('../controllers');

const router = express.Router();

router.get('/users', getAllUsers);
router.get('/logout', logout);
router.use(notFoundError);
Expand Down

0 comments on commit 57615cf

Please sign in to comment.