add test case upload api
This commit is contained in:
8
problem/views/oj.py
Normal file
8
problem/views/oj.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from utils.api import APIView
|
||||
|
||||
from ..models import ProblemTag
|
||||
|
||||
|
||||
class ProblemTagAPI(APIView):
|
||||
def get(self, request):
|
||||
return self.success([item.name for item in ProblemTag.objects.all().order_by("id")])
|
||||
Reference in New Issue
Block a user