Merge branch 'sw-more-be-routes' into 'develop'

ServiceWorker: add more backend routes

See merge request soapbox-pub/soapbox-fe!1585
This commit is contained in:
Alex Gleason 2022-06-29 17:43:19 +00:00
commit 120dcce8a1
1 changed files with 6 additions and 0 deletions

View File

@ -95,18 +95,24 @@ module.exports = merge(sharedConfig, {
match: ({ pathname }) => { match: ({ pathname }) => {
const backendRoutes = [ const backendRoutes = [
'/.well-known', '/.well-known',
'/activities',
'/admin', '/admin',
'/api', '/api',
'/auth', '/auth',
'/inbox',
'/instance', '/instance',
'/internal',
'/main/ostatus', '/main/ostatus',
'/manifest.json', '/manifest.json',
'/media', '/media',
'/nodeinfo', '/nodeinfo',
'/oauth', '/oauth',
'/objects',
'/ostatus_subscribe', '/ostatus_subscribe',
'/pghero', '/pghero',
'/pleroma', '/pleroma',
'/proxy',
'/relay',
'/sidekiq', '/sidekiq',
'/socket', '/socket',
'/static', '/static',