sample backend deployment
Some checks failed
Test code / Test code (push) Failing after 37s

This commit is contained in:
2024-05-16 17:34:54 +02:00
parent 713e4a6671
commit 7f4f707ab5
4 changed files with 932 additions and 0 deletions

23
backend/src/main.py Normal file
View File

@@ -0,0 +1,23 @@
import fastapi
from dataclasses import dataclass
@dataclass
class Destination:
name: str
location: tuple
attractiveness: int
d = Destination()
def get_route() -> list[Destination]:
return {"route": "Hello World"}
endpoint = ("/get_route", get_route)
end
if __name__ == "__main__":
fastapi.run()