Raspberry Pi - Web Server and API
What will be the output when this Flask route is accessed via GET?
from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/temp', methods=['GET'])
def temp():
data = {'temperature': 22.5}
return jsonify(data)