Skip to content

Commit

Permalink
Register the SemanticQueryViewSet with the api root (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Jul 13, 2021
1 parent e57b0c1 commit 234fe16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/readit/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@
from nlp_ontology import NLP_ONTOLOGY_ROUTE
from sources import SOURCES_ROUTE
from items import ITEMS_ROUTE
from items.views import SemanticQueryViewSet
from sparql import SPARQL_ROUTE
from .index import index, specRunner
from .utils import decode_and_proxy
from feedback.views import FeedbackViewSet

api_router = routers.DefaultRouter() # register viewsets with this router
api_router.register(r'feedback', FeedbackViewSet, basename='feedback')
api_router.register(r'query', SemanticQueryViewSet, basename='query')

urlpatterns = [
path('admin/', admin.site.urls),
Expand Down

0 comments on commit 234fe16

Please sign in to comment.