diff --git a/extensions/devices.py b/extensions/devices.py new file mode 100644 index 0000000..ff1409f --- /dev/null +++ b/extensions/devices.py @@ -0,0 +1,21 @@ +# from modules.app import app, get_api_key +# from modules.utils import configGet, jsonLoad +# from fastapi import HTTPException, Depends +# from fastapi.responses import UJSONResponse, FileResponse +# from fastapi.openapi.models import APIKey + +# @app.get("/devices", response_class=UJSONResponse, description="Get all devices") +# async def devices_get(apikey: APIKey = Depends(get_api_key)): +# pass + +# @app.get("/devices/{name}", response_class=UJSONResponse, description="Get game saves from device by name") +# async def devices_get_by_name(name: str, apikey: APIKey = Depends(get_api_key)): +# pass + +# @app.post("/devices", response_class=UJSONResponse, description="Create new device") +# async def devices_post(name: str, apikey: APIKey = Depends(get_api_key)): +# pass + +# @app.put("/devices/{name}", response_class=UJSONResponse, description="Update name of the existing device") +# async def devices_put(name: str, apikey: APIKey = Depends(get_api_key)): +# pass \ No newline at end of file diff --git a/models/devices.py b/models/devices.py new file mode 100644 index 0000000..796bb0c --- /dev/null +++ b/models/devices.py @@ -0,0 +1 @@ +# from pydantic import BaseModel \ No newline at end of file