define new route api/upload to upload audio

This commit is contained in:
Joel Mathew Thomas
2025-02-25 02:24:05 +05:30
parent c2680bdb9d
commit 076e3779ef
4 changed files with 173 additions and 30 deletions
+1
View File
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'api'
]
+2 -2
View File
@@ -16,9 +16,9 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path
from api.views import upload
from api.views import upload_audio
urlpatterns = [
path('admin/', admin.site.urls),
path('upload/',upload)
path('api/upload', upload_audio, name='upload_audio')
]