from django.urls import path
from django.views import generic
from drug import views, viewsets
from django.urls import path, include

app_name = 'drug'

urlpatterns = [    
    # path('', generic.TemplateView.as_view(template_name='drug/index.html'), name='index'),
    path('<str:table>/<str:col>/json/', views.APIView.as_view(), name='api'),
    #path('<str:name>/name/', viewsets.DrugNameViewSet.as_view()),
]
007cf01723b9dfff1c9456ca2809386eeb7dfa14
<mask token>

<mask token>
app_name = 'drug'
urlpatterns = [path('<str:table>/<str:col>/json/', views.APIView.as_view(),
    name='api')]

from django.urls import path
from django.views import generic
from drug import views, viewsets
from django.urls import path, include
app_name = 'drug'
urlpatterns = [path('<str:table>/<str:col>/json/', views.APIView.as_view(),
    name='api')]

from django.urls import path
from django.views import generic
from drug import views, viewsets
from django.urls import path, include

app_name = 'drug'

urlpatterns = [    
    # path('', generic.TemplateView.as_view(template_name='drug/index.html'), name='index'),
    path('<str:table>/<str:col>/json/', views.APIView.as_view(), name='api'),
    #path('<str:name>/name/', viewsets.DrugNameViewSet.as_view()),
]