mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
9 lines
208 B
Python
9 lines
208 B
Python
from . import Captcha
|
|
from ..api import APIView
|
|
from ..shortcuts import img2base64
|
|
|
|
|
|
class CaptchaAPIView(APIView):
|
|
def get(self, request):
|
|
return self.success(img2base64(Captcha(request).get()))
|