sage_stream back in business
This commit is contained in:
parent
a69ed2677a
commit
bf51819cbc
|
|
@ -1,6 +1,7 @@
|
|||
from django.urls import path
|
||||
from django.urls import path, include
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.videoAPI),
|
||||
path('search/', views.searchAPI),
|
||||
path('', include('sage_stream.api.urls')),
|
||||
]
|
||||
|
|
@ -5,7 +5,7 @@ from core.models import Video
|
|||
from core.serializers import VideoSerializer
|
||||
|
||||
@api_view(['GET'])
|
||||
def videoAPI(request):
|
||||
def searchAPI(request):
|
||||
q = request.GET.get('q', '')
|
||||
l = request.GET.get('limit', '6')
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
#'sage_stream',
|
||||
'sage_stream',
|
||||
'core'
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ urlpatterns = [
|
|||
path('auth/', include('django.contrib.auth.urls')),
|
||||
path('', include('core.urls')),
|
||||
path('api/', include('api.urls')),
|
||||
#path('api/', include('sage_stream.api.urls')),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user