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.
18 lines
339 B
18 lines
339 B
4 years ago
|
module.exports = exports = {
|
||
|
|
||
|
prefix: '/api/v1/offline',
|
||
|
|
||
|
middleware: [
|
||
|
'auth:ApiRoute',
|
||
|
],
|
||
|
|
||
|
get: {
|
||
|
'/prefetch': ['controller::api:v1:Offline.do_prefetch'],
|
||
|
},
|
||
|
|
||
|
post: {
|
||
|
// re-sync data when an offline client goes back online
|
||
|
'/sync': ['controller::api:v1:Offline.do_sync'],
|
||
|
},
|
||
|
}
|