17 lines
638 B
Python
17 lines
638 B
Python
|
|
from django.contrib import admin
|
||
|
|
from django.urls import include, path
|
||
|
|
|
||
|
|
from clips import views
|
||
|
|
|
||
|
|
urlpatterns = [
|
||
|
|
# `/index.html` as well as `/`, because that is the URL the browser suite has
|
||
|
|
# used since step 5 — shadow-cljs's dev server did no directory-index
|
||
|
|
# resolution, so the suite learned to ask for the file. Keeping both means
|
||
|
|
# ARTHUR_URL can stay pointed at the same place and only the port moves.
|
||
|
|
path("", views.page, name="page"),
|
||
|
|
path("index.html", views.page),
|
||
|
|
path("api/", include("clips.urls")),
|
||
|
|
path("blob/<str:digest>", views.blob, name="blob"),
|
||
|
|
path("admin/", admin.site.urls),
|
||
|
|
]
|