const { createCrudRoutes } = require('../database/crud');

let db;
function init(database) { db = database; }

function setupRoutes(app, auth) {
    createCrudRoutes(app, auth, 'process_steps', {
        fields: ['step_number', 'title', 'description', 'sort_order']
    });
}

module.exports = { init, setupRoutes };
