Spaces:
test-sj-crm
/
Runtime error

DmitrMakeev commited on
Commit
1bfefb1
1 Parent(s): 2a3d5b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -5,10 +5,6 @@ from dotenv import load_dotenv
5
  import globs
6
  from flask import render_template
7
  from api_logic import api
8
-
9
-
10
-
11
-
12
  load_dotenv()
13
 
14
  app = flask.Flask(__name__, template_folder="./")
@@ -17,6 +13,7 @@ app.config['DEBUG'] = True
17
 
18
 
19
 
 
20
  @app.route("/")
21
  def index():
22
  return flask.render_template('index.html')
@@ -24,6 +21,8 @@ def index():
24
 
25
 
26
 
 
 
27
  @app.route('/page', methods=['GET'])
28
  def page():
29
  return render_template('zapro.html')
@@ -32,6 +31,7 @@ def page():
32
 
33
 
34
 
 
35
  @app.route('/zapro', methods=['GET'])
36
  def zapro():
37
  return jsonify(dey=globs.dey,
@@ -48,6 +48,7 @@ def zapro():
48
 
49
 
50
 
 
51
  @app.route("/api", methods=['GET'])
52
  def handle_api():
53
  response = api()
@@ -59,7 +60,5 @@ def handle_api():
59
 
60
 
61
 
62
-
63
-
64
  if __name__ == '__main__':
65
  app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
 
5
  import globs
6
  from flask import render_template
7
  from api_logic import api
 
 
 
 
8
  load_dotenv()
9
 
10
  app = flask.Flask(__name__, template_folder="./")
 
13
 
14
 
15
 
16
+
17
  @app.route("/")
18
  def index():
19
  return flask.render_template('index.html')
 
21
 
22
 
23
 
24
+
25
+
26
  @app.route('/page', methods=['GET'])
27
  def page():
28
  return render_template('zapro.html')
 
31
 
32
 
33
 
34
+
35
  @app.route('/zapro', methods=['GET'])
36
  def zapro():
37
  return jsonify(dey=globs.dey,
 
48
 
49
 
50
 
51
+
52
  @app.route("/api", methods=['GET'])
53
  def handle_api():
54
  response = api()
 
60
 
61
 
62
 
 
 
63
  if __name__ == '__main__':
64
  app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))