update main.py for swaggerui

This commit is contained in:
ben
2026-08-03 11:08:47 +02:00
parent 0e91f3c1f2
commit a7dc906fd7
4 changed files with 52 additions and 40 deletions
+21 -1
View File
@@ -1 +1,21 @@
python3 -m uvicorn main:app --reload
#!/bin/bash
echo "Waar wil je de Calendar API starten?"
echo "1) Lokaal "
echo "2) LAN "
read -p "Keuze [1/2]: " choice
case $choice in
1)
echo "Start lokaal..."
python3 -m uvicorn main:app --reload
;;
2)
echo "Start op LAN..."
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000 --reload
;;
*)
echo "Ongeldige keuze"
exit 1
;;
esac