-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d04bf56
commit d2cc2f8
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from django.views.decorators.csrf import csrf_exempt | ||
from django_ratelimit.decorators import ratelimit | ||
from django.conf.urls.static import static | ||
from django.contrib import admin | ||
from django.conf import settings | ||
from django.urls import path, re_path | ||
from core import views | ||
|
||
urlpatterns = [ | ||
path('', views.pagina_principal, name='pagina_principal'), | ||
path('enviar_token', views.registrar_token, name='registrar_token'), | ||
path('cadastro_usuario/', views.pagina_cadastro, name="pagina_cadastro"), | ||
path('login/', views.pagina_login, name="pagina_login"), | ||
path('verify/<str:token>', views.verificar, name='verificar'), | ||
#path('logout/'), | ||
path('mesas', views.pagina_mesas, name="pagina_mesas"), | ||
re_path(r'^\d+/$', views.pagina_principal, name='catch_all') | ||
] | ||
|
||
if settings.DEBUG: | ||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |