2020-11-11 02:57:43 +00:00
|
|
|
module.exports = exports = {
|
|
|
|
|
|
|
|
prefix: '/api/v1/offline',
|
|
|
|
|
2020-11-11 18:23:31 +00:00
|
|
|
middleware: [],
|
2020-11-11 02:57:43 +00:00
|
|
|
|
|
|
|
get: {
|
2020-11-11 18:23:31 +00:00
|
|
|
'/prefetch': ['middleware::auth:ApiRoute', 'controller::api:v1:Offline.do_prefetch'],
|
2020-11-11 02:57:43 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
post: {
|
|
|
|
// re-sync data when an offline client goes back online
|
2020-11-11 18:23:31 +00:00
|
|
|
'/sync': ['middleware::auth:ApiRoute', 'controller::api:v1:Offline.do_sync'],
|
2020-11-11 02:57:43 +00:00
|
|
|
},
|
|
|
|
}
|