diff --git a/apps/api/urls.py b/apps/api/urls.py
index eb75d92..674339a 100644
--- a/apps/api/urls.py
+++ b/apps/api/urls.py
@@ -4,6 +4,7 @@ from django.urls import path, include
from rest_framework.authtoken.views import obtain_auth_token
from .views import (
+ APIHome,
SubChannel_ListView,
SubChannel_DetailView,
Filter_ListView,
@@ -22,6 +23,7 @@ from .views import (
)
urlpatterns = [
+ path("", APIHome.as_view(), name="home"),
path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
path("api-token-auth/", obtain_auth_token),
diff --git a/apps/api/views.py b/apps/api/views.py
index e0cde18..1576b97 100644
--- a/apps/api/views.py
+++ b/apps/api/views.py
@@ -5,6 +5,7 @@ import logging
from django.db.models import Subquery
from django.db.utils import IntegrityError
from django_filters import rest_framework as rest_filters
+from django.views.generic import TemplateView
from rest_framework import status, permissions, filters, generics
from rest_framework.response import Response
from rest_framework.pagination import PageNumberPagination
@@ -41,6 +42,10 @@ def is_automated_admin(user):
return user.user_type == DiscordUser.USER_TYPES.AUTOMATED_USER and user.is_superuser
+class APIHome(TemplateView):
+ template_name = "rest_framework/api.html"
+
+
# =================================================================================================
# SubChannel Views
diff --git a/apps/templates/rest_framework/_api.html b/apps/templates/rest_framework/_api.html
new file mode 100644
index 0000000..f9e9da6
--- /dev/null
+++ b/apps/templates/rest_framework/_api.html
@@ -0,0 +1,15 @@
+{% extends "rest_framework/base.html" %}
+{% load static %}
+
+{% block bootstrap_theme %}
+
+
+{% endblock bootstrap_theme %}
+
+{% block content %}
+
+
+
+{% endblock content %}
\ No newline at end of file