1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-12-17 16:30:37 +00:00

Add shared base resource object and update main resources to use it

This commit is contained in:
2020-09-21 19:36:07 -04:00
parent be1f02c414
commit 3e08b62010
5 changed files with 138 additions and 20 deletions

View File

@@ -1,26 +1,20 @@
import flask_restful
from imagemonk.resources._shared import ImageMonkResource
class ImageUpload(flask_restful.Resource):
class ImageUpload(ImageMonkResource):
route = "/image/"
route = ("/image/",)
def put(self):
raise NotImplementedError
def options(self):
def post(self):
raise NotImplementedError
class Image(flask_restful.Resource):
class Image(ImageMonkResource):
route = "/image/<string:image_id>.jpg"
route = ("/image/<string:image_id>.jpg",)
def get(self, image_id: str):
raise NotImplementedError
def delete(self, image_id: str):
raise NotImplementedError
def options(self, image_id: str):
raise NotImplementedError