Skip to content
Snippets Groups Projects
Verified Commit d8b74b95 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Proper federation namespace and prefix

parent 4487eb4c
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ from . import views
router = routers.SimpleRouter(trailing_slash=False)
router.register(
r'instance',
r'federation/instance',
views.InstanceViewSet,
'instance')
router.register(
......
......@@ -34,7 +34,7 @@ module.exports = {
changeOrigin: true,
ws: true,
filter: function (pathname, req) {
let proxified = ['.well-known', 'staticfiles', 'media', 'instance', 'api']
let proxified = ['.well-known', 'staticfiles', 'media', 'federation', 'api']
let matches = proxified.filter(e => {
return pathname.match(`^/${e}`)
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment