Beispiel #1
0
from src.controller.user import *
from src.middleware.auth import AuthMiddleware
from core.router import Router


# Normal user for sano
user_router = Router()
user_router.post("/login", login)
user_router.post("/register", register)
user_router.get("/profile", AuthMiddleware(), get_profile)
from core.router import Router
from src.controller.location import *
from src.controller.marathon import *

location_router = Router()
location_router.post("/marathon", add_marathon)
location_router.get("/<int:location_id>", get_location_by_id)
location_router.get("/search", search_location)