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), # A project's own address, with its name as a slug for people to read. The # same page; the client reads the id out of the path and opens it. path("p/", views.page), path("p//", views.page), path("api/", include("clips.urls")), path("blob/", views.blob, name="blob"), path("admin/", admin.site.urls), ]