aboutsummaryrefslogtreecommitdiffstats
path: root/backend/app.py
blob: 51b0dbb60c9b6237a08f7e741ba7bc4906850602 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Flask app for serving the static files
"""
from flask import Flask, send_file, send_from_directory, jsonify, abort
from flask_cors import CORS

app = Flask(__name__)
CORS(app)


@app.route('/')
def main_page():
    return "We are offline at the moment"


@app.errorhandler(404)
def not_found(error):
    return jsonify(error=str(error)), 404


if __name__ == "__main__":
    app.run(debug=True)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage