From e637ef2b0b3c5820f64992a806365d28e6f311a9 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 23 Mar 2025 16:47:21 +0100 Subject: [PATCH] Update code in endpoints/open.post.py --- endpoints/open.post.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/endpoints/open.post.py b/endpoints/open.post.py index 74e6fe6..9e8853f 100644 --- a/endpoints/open.post.py +++ b/endpoints/open.post.py @@ -3,20 +3,20 @@ from fastapi import APIRouter, HTTPException router = APIRouter() towns = [ + "Yaounde", "Douala", - "Yaoundé", - "Garoua", "Bafoussam", - "Bamenda", + "Garoua", "Maroua", - "Ngaoundéré", - "Kumba", - "Nkongsamba", - "Bertoua" + "Bamenda", + "Ngaoundere", + "Bertoua", + "Ebolowa", + "Kribi" ] @router.post("/open") -async def get_towns(): +async def get_cameroon_towns(): """endpoint that returns list of town in camerouns""" if request.method != "POST": raise HTTPException(status_code=405, detail="Method Not Allowed")