UNPKG

@opengis/fastify-table

Version:

core-plugins

20 lines (17 loc) 429 B
import readItemList from './controllers/readItems.js'; import setItem from './controllers/setItem.js'; const policy = ['site']; export default async function plugin(app, config = {}) { app.route({ method: 'GET', url: '/db-list', config: { policy }, handler: readItemList, }); app.route({ method: 'GET', url: '/db-list/:id', config: { policy }, handler: setItem, }); }