Mosqkiller-API/apps/mosquito/api/urls.py

14 lines
383 B
Python

from django.urls import path, re_path
from .views import (
MosquitoListAPIView,
MosquitoPostListAPIView,
DeviceTempLogListAPIView,
)
app_name = 'mosq-api'
urlpatterns = [
path('', MosquitoListAPIView.as_view(), name='list'),
path('post/', MosquitoPostListAPIView.as_view(), name='post'),
path('temp/', DeviceTempLogListAPIView.as_view(), name='temp-hum'),
]