Skip to content

Commit

Permalink
Alteração nas urls
Browse files Browse the repository at this point in the history
  • Loading branch information
RankracerBR committed Feb 20, 2024
1 parent d04bf56 commit d2cc2f8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions reservas/core/urls.py
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)

0 comments on commit d2cc2f8

Please sign in to comment.