Files
cbwebreader/comic/urls.py
ajurna a28bc50a44 changed views to use Database data to read files.
moved alot of the functionality to the models.
changed the file access so that it ignores the extension and just attempts rar and zip access.
2015-06-18 13:59:53 +01:00

12 lines
601 B
Python

from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^(?P<comic_path>[\w]+)\/$', views.index, name='index'),
url(r'^read\/(?P<comic_path>[\w]+)\/(?P<page>[0-9]+)\/$', views.read_comic, name='read_comic'),
url(r'^read\/(?P<comic_path>[\w]+)\/(?P<page>[0-9]+)\/img$', views.get_image, name='get_image'),
url(r"^file\/(?P<page>[0-9]+)\/(?P<file_name>[\w.\s'\(\)\-]+)\/$", views.read_comic, name='read_comic'),
url(r"^file\/(?P<page>[0-9]+)\/(?P<file_name>[\w.\s'\(\)\-]+)\/img$", views.get_image, name='get_image'),
]