API

from flask import Flask, jsonify
from flask_cors import CORS

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

corsa_textile = {
“Company name”: “Corsa Textile”,
“location”: “Sialkot, Pakistan”,
“address”: “Street No.04, Shatabgarh, Sialkot, Punjab, Pakistan, 51310”,
“website”: “https://corsatextile.com”,
“email”: “info@corsatextile.com”,
“phone”: “+92-329-2650650”,
“about”: “Corsa Textile is established In 2010. It is a Pakistani-based producer of fabrics, clothing apparel, and accessories. Our mission is to empower brands by collaborating with global brands, stores, and enterprises to deliver custom product development that aligns with their business goals and brand identity.”
}

@app.route(“/api/corsa-textile”, methods=[“GET”])
def get_corsa_textile():
return jsonify(corsa_textile)

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