-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.py
41 lines (30 loc) · 917 Bytes
/
app.py
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
from flask import Flask, render_template, Response, request, jsonify
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/contact')
def contact():
return render_template('contact.html')
@app.route('/pygame')
def pygame():
return render_template('pygame.html')
@app.route('/carbon')
def carbon():
return render_template('carbon.html')
@app.route('/news')
def news():
return render_template('news.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/rewards')
def rewards():
return render_template('rewards.html')
# Route to display the Pygame component on a web page
# @app.route('/pygame.html')
# def pygame_component():
# animation.run_pygame_logic()
# return "Pygame logic executed successfully" # Customize the response as needed
if __name__ == '__main__':
app.run(debug=True)