Separates incoming and outgoing api actions
This commit is contained in:
parent
ae248f6fdc
commit
17468177dd
8 changed files with 430 additions and 424 deletions
|
@ -15,17 +15,17 @@ Including another URLconf
|
|||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from fedireads import federation, views, settings
|
||||
from fedireads import incoming, outgoing, views, settings
|
||||
from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
|
||||
# federation endpoints
|
||||
path('user/<str:username>.json', federation.get_actor),
|
||||
path('user/<str:username>/inbox', federation.inbox),
|
||||
path('user/<str:username>/outbox', federation.outbox),
|
||||
path('.well-known/webfinger', federation.webfinger),
|
||||
path('user/<str:username>.json', incoming.get_actor),
|
||||
path('user/<str:username>/inbox', incoming.inbox),
|
||||
path('user/<str:username>/outbox', outgoing.outbox),
|
||||
path('.well-known/webfinger', incoming.webfinger),
|
||||
|
||||
# ui views
|
||||
path('', views.home),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue