Adds opensearch xml file

This commit is contained in:
Mouse Reeve
2021-09-10 16:47:59 -07:00
parent c1b50001e9
commit 7c3cf095f3
4 changed files with 22 additions and 1 deletions

View File

@ -41,6 +41,7 @@ urlpatterns = [
re_path(r"^nodeinfo/2\.0/?$", views.nodeinfo),
re_path(r"^api/v1/instance/?$", views.instance_info),
re_path(r"^api/v1/instance/peers/?$", views.peers),
re_path(r"^opensearch.xml$", views.opensearch, name="opensearch"),
# polling updates
re_path("^api/updates/notifications/?$", views.get_notification_count),
re_path("^api/updates/stream/(?P<stream>[a-z]+)/?$", views.get_unread_status_count),