Skip to content

Commit

Permalink
Merge pull request #266 from nexB/update-public-api
Browse files Browse the repository at this point in the history
Add validate endpoint to public API
  • Loading branch information
JonoYang authored Dec 20, 2023
2 parents c6fb1aa + 1dca58d commit e1a2000
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions purldb_public_project/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@
from rest_framework import routers

from packagedb.api import PackagePublicViewSet
from packagedb.api import PurlValidateViewSet
from packagedb.api import ResourceViewSet


api_router = routers.DefaultRouter()
api_router.register('packages', PackagePublicViewSet)
api_router.register('resources', ResourceViewSet)
api_router.register('validate', PurlValidateViewSet, 'validate')


urlpatterns = [
path(
Expand Down

0 comments on commit e1a2000

Please sign in to comment.