mirror of
https://github.com/enpaul/kodak.git
synced 2024-11-11 00:57:00 +00:00
18 lines
453 B
Python
18 lines
453 B
Python
|
import flask_restful
|
||
|
|
||
|
|
||
|
class ThumbnailScale(flask_restful.Resource):
|
||
|
|
||
|
route = "/thumb/<string:image_id>/scale/<integer:scale_width>.jpg"
|
||
|
|
||
|
def get(self, image_id: str, scale_width: int):
|
||
|
raise NotImplementedError
|
||
|
|
||
|
|
||
|
class ThumbnailResize(flask_restful.Resource):
|
||
|
|
||
|
route = "/thumb/<string:image_id>/size/<integer:width>x<integer:height>.jpg"
|
||
|
|
||
|
def get(self, image_id: str, width: int, height: int):
|
||
|
raise NotImplementedError
|