Skip to content

Commit

Permalink
clean up messy code
Browse files Browse the repository at this point in the history
  • Loading branch information
miggs125 committed Nov 20, 2019
1 parent 3b29f37 commit c29bed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/web/routes/index.js
@@ -1,12 +1,13 @@
const express = require('express');
const path = require('path');
const admin = require('./admin');

const router = express.Router();

router.get('/', (req, res) => {
res.sendFile(path.join(__dirname, '../../../frontend/index.html'));
});

router.use('/admin', require('./admin'));
router.use('/admin', admin);

module.exports = router;

0 comments on commit c29bed1

Please sign in to comment.