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.
16 lines
367 B
16 lines
367 B
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'],
|
|
},
|
|
}
|