From 5dbf53fc1cbbaf5ccf9af114ff50ed2a504fe7ea Mon Sep 17 00:00:00 2001 From: TatLead Date: Sat, 16 Mar 2024 01:01:16 +0000 Subject: [PATCH] Update app.py --- app.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app.py b/app.py index b163819..2857baa 100644 --- a/app.py +++ b/app.py @@ -112,11 +112,11 @@ def factorio_search(): return search(request.args, Factorio()) -@app.route('/thefront/search', methods=['GET']) -def front_search(): +@app.route('/palworld/search', methods=['GET']) +def palworld_search(): """ - Front Search - This endpoint allows you to search for a The Front server using its host and port. + Palworld Search + This endpoint allows you to search for a Palworld server using its host and port. --- tags: - Search EndPoint @@ -137,14 +137,14 @@ def front_search(): 404: description: No server was found with the provided host and port. """ - return search(request.args, TheFront()) + return search(request.args, Palworld()) -@app.route('/palworld/search', methods=['GET']) -def palworld_search(): +@app.route('/scum/search', methods=['GET']) +def scum_search(): """ - Palworld Search - This endpoint allows you to search for a Palworld server using its host and port. + SCUM Search + This endpoint allows you to search for a SCUM server using its host and port. --- tags: - Search EndPoint @@ -165,14 +165,14 @@ def palworld_search(): 404: description: No server was found with the provided host and port. """ - return search(request.args, Palworld()) + return search(request.args, Scum()) -@app.route('/scum/search', methods=['GET']) -def scum_search(): +@app.route('/thefront/search', methods=['GET']) +def thefront_search(): """ - SCUM Search - This endpoint allows you to search for a SCUM server using its host and port. + Front Search + This endpoint allows you to search for a The Front server using its host and port. --- tags: - Search EndPoint @@ -193,7 +193,7 @@ def scum_search(): 404: description: No server was found with the provided host and port. """ - return search(request.args, Scum()) + return search(request.args, TheFront()) @app.route("/terms")