14 lines
304 B
Python
14 lines
304 B
Python
from django.http import HttpResponse
|
|
|
|
from SprintLib.BaseView import BaseView
|
|
from SprintLib.utils import get_bytes
|
|
|
|
|
|
class ImageView(BaseView):
|
|
endpoint = "image"
|
|
|
|
def get(self):
|
|
return HttpResponse(
|
|
get_bytes(int(self.request.GET["id"])), content_type="image/jpg"
|
|
)
|