From 61d3a2f7ce2fd389087d1fb2f8cbc4a8c7c184e0 Mon Sep 17 00:00:00 2001 From: Yuliia Hladyshkevych Date: Thu, 25 Jan 2024 18:24:19 +0200 Subject: [PATCH] Added Link to API --- cryptocurrency/urls_api.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cryptocurrency/urls_api.py diff --git a/cryptocurrency/urls_api.py b/cryptocurrency/urls_api.py new file mode 100644 index 0000000..93dd638 --- /dev/null +++ b/cryptocurrency/urls_api.py @@ -0,0 +1,13 @@ +from django.urls import path + +from .views import CryptocurrencyViewSet + +urlpatterns = [ + path( + "cryptocurrencies/", + CryptocurrencyViewSet.as_view({"get": "list"}), + name="cryptocurrency-list-api", + ), +] + +app_name = "cryptocurrency"