import flask_restful class ThumbnailScale(flask_restful.Resource): route = "/thumb//scale/.jpg" def get(self, image_id: str, scale_width: int): raise NotImplementedError class ThumbnailResize(flask_restful.Resource): route = "/thumb//size/x.jpg" def get(self, image_id: str, width: int, height: int): raise NotImplementedError