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

Rename project to imagemuck

This commit is contained in:
2021-05-05 13:48:02 -04:00
parent 6a7662ae0f
commit d92b53a60c
31 changed files with 116 additions and 116 deletions

View File

@@ -0,0 +1,19 @@
from pathlib import Path
from ruamel.yaml import YAML
from imagemuck.resources._shared import ImageMuckResource
yaml = YAML(typ="safe")
class OpenAPI(ImageMuckResource):
routes = ("/openapi.json",)
def get(self):
with (Path(__file__).parent, "openapi.yaml").open() as infile:
data = yaml.load(infile)
return data, 200