anyway/backend/src/main_example.py
Kilian Scheidecker 2b31ce5f6b
Some checks failed
Test code / Test code (push) Failing after 2s
Cleanup and created main
2024-05-22 10:16:33 +02:00

24 lines
324 B
Python

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()