1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-09-18 21:21:59 +00:00

Rename project to fresnel-lens

This commit is contained in:
2021-10-28 19:03:09 -04:00
parent f9c38a5bcc
commit 888225bdf7
31 changed files with 155 additions and 160 deletions

View File

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