17 lines
524 B
Python
17 lines
524 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from .views import HomeView, TestIpView, HealthcheckView, StatusView
|
|
|
|
app_name = "core"
|
|
|
|
router = DefaultRouter()
|
|
|
|
# router.register('api/config', ConfigViewSet, basename='configs')
|
|
|
|
urlpatterns = [
|
|
path('', HomeView.as_view(), name='home'),
|
|
path('test-ip', TestIpView.as_view(), name='test-ip'),
|
|
path('status', StatusView.as_view(), name='status'),
|
|
path('healthcheck', HealthcheckView.as_view(), name='healthcheck'),
|
|
]
|