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

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

function setupRoutes(app, auth) {
    createCrudRoutes(app, auth, 'services', {
        fields: ['svg_icon', 'title', 'description', 'items', 'is_large', 'sort_order', 'is_active']
    });
}

module.exports = { init, setupRoutes };
