readme, changes to api structure

This commit is contained in:
Mikayla Dobson
2022-10-02 10:13:31 -05:00
parent 7b3063f43b
commit 6873bab352
8 changed files with 13 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ const CategoryService = require('../services/CategoryService');
const CategoryInstance = new CategoryService();
module.exports = (app) => {
app.use('/api/category', router);
app.use('/category', router);
router.get('/', async (req, res, next) => {
const { name } = req.query;