Question:
My server is handling post requests perfectly fine but my get requests are not working and giving a 308
Repl link:
Server: https://replit.com/@MTFCommander/Python-Dev-server
Client: https://replit.com/@MTFCommander/ShadowyEdibleBinary
@app.route('/status', methods=['GET'])
def get_status():
# You can return some status information when a GET request is made
return jsonify({'status': 'Server is running'}), 200
# Add a route for the root path
@app.route('/', methods=['GET'])
def root():
return jsonify({'message': 'Welcome to the server!'}), 200