Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit e787809

Browse files
authored
Merge pull request #206 from luzhongyang/main
allow all user to access
2 parents 52e23ff + 0b63c96 commit e787809

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sca/views/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from rest_framework import views
44
from django.core.paginator import Paginator
55
from django.forms.models import model_to_dict
6+
from dongtai.endpoint import R, AnonymousAndUserEndPoint
67

7-
8-
class PackageList(views.APIView):
8+
class PackageList(AnonymousAndUserEndPoint):
99

1010
def get(self, request):
1111
filter_fields = ['hash', 'aql', 'ecosystem', 'name', 'version']

sca/views/package_vul.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
from django.http import JsonResponse
33
from rest_framework import views
44
from django.forms.models import model_to_dict
5+
from dongtai.endpoint import R, AnonymousAndUserEndPoint
56

6-
class OnePackageVulList(views.APIView):
7+
class OnePackageVulList(AnonymousAndUserEndPoint):
78

89
# 查找单个漏洞下,所有的修复的高版本
910
def find_fixed_versions(self, vul_package_id, ecosystem, name, version):

0 commit comments

Comments
 (0)