Use local key instead of openlibrary key in urls
but uh maybe the local key shouldn't look so gnarly?
This commit is contained in:
parent
5d2fbb8500
commit
0f98610629
13 changed files with 24 additions and 22 deletions
|
@ -56,8 +56,8 @@ urlpatterns = [
|
|||
re_path(r'%s/replies\.json$' % status_path, views.replies_page),
|
||||
|
||||
# books
|
||||
re_path(r'^book/(?P<book_identifier>\w+)/?$', views.book_page),
|
||||
re_path(r'^book/(?P<book_identifier>\w+)/(?P<tab>friends|local|federated)?$', views.book_page),
|
||||
re_path(r'^book/(?P<book_identifier>[\w\-]+)/?$', views.book_page),
|
||||
re_path(r'^book/(?P<book_identifier>[\w\-]+)/(?P<tab>friends|local|federated)?$', views.book_page),
|
||||
re_path(r'^author/(?P<author_identifier>\w+)/?$', views.author_page),
|
||||
re_path(r'^tag/(?P<tag_id>.+)/?$', views.tag_page),
|
||||
re_path(r'^shelf/%s/(?P<shelf_identifier>[\w-]+)/?$' % username_regex, views.shelf_page),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue