File size: 1,080 Bytes
f18f04b
2923221
e9edc80
3ea419a
3537db9
2923221
e9edc80
5e5ef88
2923221
16a7715
 
c7511da
8545312
16a7715
7c30a13
06bb533
c337d62
53a14a2
2923221
e9edc80
ec447d0
16a7715
 
 
8d825b0
16a7715
 
45785b6
d1ee52b
 
e9edc80
3ab3bfe
ec447d0
2923221
 
 
 
30cb684
7a42f0c
2923221
 
 
 
 
 
1bfefb1
71e318b
 
336718b
2ab4f80
2923221
 
 
 
 
 
 
 
 
856645f
 
 
1bfefb1
2923221
23526fa
 
 
2923221
1a7f16a
c7511da
 
 
 
2923221
7f47b57
 
a207445
5584ab1
2923221
 
23526fa
 
 
 
 
 
 
 
2923221
 
 
 
3e477c1
4595fee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2923221
 
 
 
f18f04b
2923221
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import flask
from flask import request, jsonify, send_file
import os



from dotenv import load_dotenv
import globs
from flask import render_template


from api_logic import api



from google_db import save_db 

from my_sqlite import create_SQL

load_dotenv()










app = flask.Flask(__name__, template_folder="./")
app.config['DEBUG'] = True





@app.route("/")
def index():
    return flask.render_template('index.html')






@app.route('/online', methods=['GET'])
def online():
    return render_template('online.html')










@app.route('/settings', methods=['GET'])
def settings():
    return render_template('settings.html')





    
@app.route("/api", methods=['GET'])
def handle_api():
    response = api()
    return response


@app.route("/save_db", methods=['GET'])
def handle_save_db():
    response = save_db()
    return response


@app.route('/set_res')
def set_res():
    globs.eep_set = 0
    return jsonify(value_set="reset")































if __name__ == '__main__':
    app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))