2023-04-25 16:01:34 +00:00
|
|
|
from django.urls import path, re_path
|
2018-05-06 21:19:49 +00:00
|
|
|
from django.views.static import serve
|
2023-04-21 12:47:30 +00:00
|
|
|
|
2013-04-04 17:37:30 +00:00
|
|
|
from paste import views
|
|
|
|
from webtools import settings
|
|
|
|
|
2018-05-06 21:19:49 +00:00
|
|
|
urlpatterns = [
|
2023-04-25 16:01:34 +00:00
|
|
|
path("", views.IndexView.as_view(), name="index"),
|
2023-04-25 08:49:36 +00:00
|
|
|
path("::/static/<path>", serve, {"document_root": settings.STATIC_ROOT}),
|
2023-04-25 16:01:34 +00:00
|
|
|
path("::/list/", views.ListView.as_view()),
|
|
|
|
re_path(r"^(?!::)(?P<path>.*)$", views.PasteView.as_view(), name="paste"),
|
2018-05-06 21:19:49 +00:00
|
|
|
]
|