API

from flask import Flask, jsonify
from flask_cors import CORS

app = Flask(name)
CORS(app) # Allow cross-origin requests

corsa_leathers = {
“name”: “Corsa Leathers”,
“location”: “Sialkot, Pakistan”,
“address”: “Gulshan-e-Tauheed Town Road, Shatabgarh, Sialkot, Pakistan”,
“website”: “https://corsaleathers.com”,
“email”: “info@corsaleathers.com”,
“phone”: “+92-330-2650650”,
“about”: “Corsa Leathers, established in 2005, is a Pakistan-Britain-based leading manufacturing company specializing in leather and leather products. We collaborate with global brands, stores, shops, and enterprises to blend business goals and empower brands through custom product development aligned with their unique identity.”
}

@app.route(“/api/corsa-leathers”, methods=[“GET”])
def get_corsa_leathers():
return jsonify(corsa_leathers)

if name == “main“:
app.run(host=”0.0.0.0″, port=5000, debug=True)