backend/app/routing/routers/api/v1/offline.routes.js

16 lines
367 B
JavaScript
Raw Normal View History

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'],
},
}