Files
kakebo/app/api/urls.py
Andros Fenollosa 176f6a6f17 Remove v1 prefix from API routes, add root endpoint
- API routes now at /api/ instead of /api/v1/
- GET /api/ returns all available endpoints with HATEOAS links
- Update tests and README
2026-03-18 09:01:28 +01:00

17 lines
398 B
Python

from django.urls import path
from . import views
app_name = "api"
urlpatterns = [
path("", views.RootView.as_view(), name="root"),
path("categories/", views.CategoriesView.as_view(), name="categories"),
path(
"categories/<int:category_id>/subcategories/",
views.SubcategoriesView.as_view(),
name="subcategories",
),
path("expenses/", views.ExpensesView.as_view(), name="expenses"),
]