Skip to content

Commit

Permalink
re-regexify some paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aletson committed Jan 10, 2021
1 parent b9692c0 commit 510cfd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions votefinder/main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
re_path(r'^update/(?P<gameid>\d+)/*$', views.update),
re_path(r'^player_state/(?P<gameid>\d+)/(?P<playerid>\d+)/(?P<state>\w+)/$', views.player_state),
path('player_list/', views.player_list),
path('add_player/<int:gameid>/', views.add_player),
path('delete_spectators/<int:gameid>/', views.delete_spectators),
re_path(r'^add_player/(?P<gameid>\d+)/*$', views.add_player),
re_path(r'^delete_spectators/(?P<gameid>\d+)/*$', views.delete_spectators),
path('votecount/<int:gameid>/', views.votecount),
re_path(r'^resolve/(?P<voteid>\d+)/(?P<resolution>-{0,1}\d+)/*$', views.resolve),
re_path(r'^posts/(?P<gameid>\d+)/(?P<page>\d+)/*$', views.posts),
path('add_comment/<int:gameid>/', views.add_comment),
path('delete_comment/<int:commentid>/', views.delete_comment),
re_path(r'^add_comment/(?P<gameid>\d+)/*$', views.add_comment),
re_path(r'^delete_comment/(?P<commentid>\d+)/*$', views.delete_comment),
path('rss/', feeds.LatestRss()),
path('atom/', feeds.LatestAtom()),
re_path(r'^game_status/(?P<slug>[\w-]+)/*', feeds.SpecificGameStatusAtom()),
Expand Down
6 changes: 3 additions & 3 deletions votefinder/vfauth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

urlpatterns = [
path('link_profile', auth_views.give_user_profile_key),
path('link_profile/2', auth_views.link_profile),
path('link_profile/done', auth_views.link_user_to_profile),
re_path(r'link_profile/2/*$', auth_views.link_profile),
re_path(r'link_profile/done/*$', auth_views.link_user_to_profile),
path('create', auth_views.create_votefinder_account),
path('create/done', auth_views.validate_and_create_user),
re_path(r'create/done/*$', auth_views.validate_and_create_user),
path('login', django_views.LoginView.as_view(template_name='login.html')),
path('logout', django_views.LogoutView.as_view(template_name='logged_out.html')),
path('password_change', django_views.PasswordChangeView.as_view(template_name='password_change_form.html', success_url='done/')),
Expand Down

1 comment on commit 510cfd3

@aletson
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.