Backend WOW. Pt.2

This commit is contained in:
Patrick_Pluto 2024-09-19 09:44:54 +02:00
parent 89cc832a6b
commit fcc147f8ae

View file

@ -23,7 +23,7 @@ class API:
self.ai = AI() self.ai = AI()
def run(self): def run(self):
@self.app.route('/interstellar/api/ai_create', methods=['POST']) @self.app.route('/interstellar/api/ai_create', methods=['GET'])
def create_ai(): def create_ai():
self.ai_response.append("") self.ai_response.append("")
return jsonify({'status': 200, 'access_token': len(self.ai_response) - 1}) return jsonify({'status': 200, 'access_token': len(self.ai_response) - 1})