Verified Commit d8b74b95 authored by Agate's avatar Agate 💬

Proper federation namespace and prefix

parent 4487eb4c
......@@ -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}`)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment