import express from 'express'; // Route imports import testRoute from './test.js'; import csvImportRoute from './import/csvImport.js'; import jsonImportRoute from './import/jsonImport.js'; import categoryManager from './categoryManager.js'; import storageManager from './storageManager.js'; import startpageRoute from './startpage.js'; // Router base is '/manage' const Router = express.Router({ strict: false }); Router.route('/test').get(testRoute.get); Router.route('/categories').get(categoryManager.get); Router.route('/storages').get(storageManager.get); Router.route('/import/csv').get(csvImportRoute.get).post(csvImportRoute.post); Router.route('/import/json').get(jsonImportRoute.get).post(jsonImportRoute.post); Router.route('/').get(startpageRoute.get); export default Router;