mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
337 B
15 lines
337 B
/**
|
|
* API Routes
|
|
*/
|
|
async function routes (app, options) {
|
|
app.register(import('./sites.mjs'), { prefix: '/sites' })
|
|
app.register(import('./system.mjs'), { prefix: '/system' })
|
|
app.register(import('./users.mjs'), { prefix: '/users' })
|
|
|
|
app.get('/', async (req, reply) => {
|
|
return { ok: true }
|
|
})
|
|
}
|
|
|
|
export default routes
|