- API routes now at /api/ instead of /api/v1/ - GET /api/ returns all available endpoints with HATEOAS links - Update tests and README
17 lines
398 B
Python
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"),
|
|
]
|