const C = require('./controllers') const { routes:crudRoutes } = require('@alancnet/material-framework/lib/crud') module.exports = app => { app.get('/api/statistics', C.statistics.get) crudRoutes({ app, apiPrefix: '/api/staff-members/:location', controller: C.staffMember, camelName: 'staffMember' }) // crudRoutes({ app, controller: C.staffMember, camelName: 'staffMember' }) crudRoutes({ app, controller: C.staffingAgency, camelName: 'staffingAgency' }) app.get('/api/labor/:location', C.labor.list) app.get('/api/labor/:location/:week', C.labor.get) app.patch('/api/labor/:location/:week', C.labor.patch) }