From fcc147f8ae7ae1154a08dada6da10917b0481c18 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Thu, 19 Sep 2024 09:44:54 +0200 Subject: [PATCH] Backend WOW. Pt.2 --- py/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/api.py b/py/api.py index ad52667..6eb7cc0 100644 --- a/py/api.py +++ b/py/api.py @@ -23,7 +23,7 @@ class API: self.ai = AI() def run(self): - @self.app.route('/interstellar/api/ai_create', methods=['POST']) + @self.app.route('/interstellar/api/ai_create', methods=['GET']) def create_ai(): self.ai_response.append("") return jsonify({'status': 200, 'access_token': len(self.ai_response) - 1})