backend/app/routing/routers/api/v1/offline.routes.js
garrettmills 9df5f2d5f4
All checks were successful
continuous-integration/drone/push Build is passing
Split API into multiple files & setup public user permissions
2020-11-11 12:23:31 -06:00

16 lines
367 B
JavaScript

module.exports = exports = {
prefix: '/api/v1/offline',
middleware: [],
get: {
'/prefetch': ['middleware::auth:ApiRoute', 'controller::api:v1:Offline.do_prefetch'],
},
post: {
// re-sync data when an offline client goes back online
'/sync': ['middleware::auth:ApiRoute', 'controller::api:v1:Offline.do_sync'],
},
}