garrettmills
9df5f2d5f4
All checks were successful
continuous-integration/drone/push Build is passing
16 lines
367 B
JavaScript
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'],
|
|
},
|
|
}
|