busby_1st split out from bowler_pub. Intermediate checkin.

trilby-heavy
Marnanel Thurman 2020-04-29 17:58:51 +01:00
rodzic 2275c428a3
commit 2c273d0311
13 zmienionych plików z 23 dodań i 8 usunięć

Wyświetl plik

@ -22,13 +22,5 @@ urlpatterns = [
path('users/<str:username>/followers', bowler_pub_views.FollowersView.as_view()),
path('users/<str:username>/following', bowler_pub_views.FollowingView.as_view()),
path('sharedInbox', bowler_pub_views.InboxView.as_view()),
# XXX We might want to split out the patterns that HAVE to be
# at the root.
path('.well-known/host-meta', bowler_pub_views.HostMeta.as_view()),
path('.well-known/webfinger', bowler_pub_views.Webfinger.as_view()),
path('.well-known/nodeinfo', bowler_pub_views.NodeinfoPart1.as_view()),
path('nodeinfo.json', bowler_pub_views.NodeinfoPart2.as_view()),
]

Wyświetl plik

@ -0,0 +1 @@
default_app_config = 'busby_1st.apps.Busby1stConfig'

Wyświetl plik

@ -0,0 +1,5 @@
from django.apps import AppConfig
class Busby1stConfig(AppConfig):
name = 'busby_1st'
verbose_name = 'Busby (first point of contact)'

Wyświetl plik

@ -0,0 +1,16 @@
# busby_1st/urls.py
#
# Part of kepi.
# Copyright (c) 2018-2020 Marnanel Thurman.
# Licensed under the GNU Public License v2.
from django.urls import path, re_path
import kepi.busby_1st.views as busby_views
urlpatterns = [
path('.well-known/host-meta', busby_views.HostMeta.as_view()),
path('.well-known/webfinger', busby_views.Webfinger.as_view()),
path('.well-known/nodeinfo', busby_views.NodeinfoPart1.as_view()),
path('nodeinfo.json', busby_views.NodeinfoPart2.as_view()),
]

Wyświetl plik

@ -90,6 +90,7 @@ INSTALLED_APPS = (
'django_fields',
'polymorphic',
'kepi.busby_1st',
'kepi.bowler_pub',
'kepi.trilby_api',