django-watson/watson/urls.py
Shybert e1aa648a63 url -> re_path
Required for Django 4 compat
2022-02-13 15:35:26 +01:00

15 lines
315 B
Python

"""URLs for the built-in site search functionality."""
from __future__ import unicode_literals
from django.urls import re_path
from watson.views import search, search_json
app_name = 'watson'
urlpatterns = [
re_path("^$", search, name="search"),
re_path("^json/$", search_json, name="search_json"),
]