From 3305435dce7d3797012f11590538da4c0f7987dc Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 23 Mar 2025 17:54:37 +0100 Subject: [PATCH] Update code in endpoints/logout.post.py --- endpoints/logout.post.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/endpoints/logout.post.py b/endpoints/logout.post.py index 6dc6759..b37e44f 100644 --- a/endpoints/logout.post.py +++ b/endpoints/logout.post.py @@ -1,10 +1,10 @@ from fastapi import APIRouter, HTTPException laptops = [ - {"name": "Dell XPS 13"}, + {"name": "Dell XPS 15"}, + {"name": "MacBook Pro 16"}, {"name": "Lenovo ThinkPad X1 Carbon"}, {"name": "HP Spectre x360"}, - {"name": "Apple MacBook Pro"}, {"name": "Asus ZenBook Pro Duo"} ] @@ -12,10 +12,10 @@ router = APIRouter() @router.post("/logout") async def logout(): - """Returns list of laptop names""" + """Endpoint that returns list of laptop names""" if request.method != "POST": raise HTTPException(status_code=405, detail="Method Not Allowed") - + return { "method": "POST", "_verb": "post",