Skip to content

Commit

Permalink
implement new uploads to the addon api, for listed too.
Browse files Browse the repository at this point in the history
  • Loading branch information
eviljeff committed Sep 15, 2021
1 parent 86807a6 commit 4a5296d
Show file tree
Hide file tree
Showing 15 changed files with 920 additions and 71 deletions.
8 changes: 8 additions & 0 deletions src/olympia/addons/api_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from rest_framework_nested.routers import NestedSimpleRouter

from olympia.activity.views import VersionReviewNotesViewSet
from olympia.files.views import FileUploadViewSet

from .views import (
AddonAutoCompleteSearchView,
Expand All @@ -30,6 +31,9 @@
r'reviewnotes', VersionReviewNotesViewSet, basename='version-reviewnotes'
)

submissions = SimpleRouter()
submissions.register(r'submission', FileUploadViewSet, basename='addon-submission')

urls = [
re_path(r'', include(addons.urls)),
re_path(r'', include(sub_addons.urls)),
Expand Down Expand Up @@ -66,3 +70,7 @@
]

addons_v4 = urls

addons_v5 = addons_v4 + [
re_path(r'', include(submissions.urls)),
]
Loading

0 comments on commit 4a5296d

Please sign in to comment.