Skip to content

Commit

Permalink
refa: alterando urls
Browse files Browse the repository at this point in the history
  • Loading branch information
iagocpv committed Oct 11, 2024
1 parent 17343bf commit f6c5fe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tupan/alertas/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from .views import AlertasView, AlertasDetalhesView, HistoricoAlertaView, MedicaoView, MedicaoDetalhesView

urlpatterns = [
path('', AlertasView.as_view(), name='alertas'),
path('/<int:id>', AlertasDetalhesView.as_view(), name='alertas-detalhes'),
path('alertas', AlertasView.as_view(), name='alertas'),
path('alertas/<int:id>', AlertasDetalhesView.as_view(), name='alertas-detalhes'),
path('historicos', HistoricoAlertaView.as_view(), name='historico-alertas'),
path('medicoes', MedicaoView.as_view(), name='medicoes'),
path('medicoes/<int:id>', MedicaoDetalhesView.as_view(), name='medicoes-detalhes')
Expand Down
2 changes: 1 addition & 1 deletion src/tupan/tupan/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

urlpatterns = [
path('admin/', admin.site.urls),
path('alertas', include('alertas.urls')),
path('', include('alertas.urls')),
path('', include('estacoes.urls')),
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('api/schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
Expand Down

0 comments on commit f6c5fe0

Please sign in to comment.