-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
28 lines (18 loc) · 690 Bytes
/
app.py
File metadata and controls
28 lines (18 loc) · 690 Bytes
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
from flask import Flask
from controllers.user_controller import appController
from controllers.productController import productController
import os
app = Flask(__name__)
@app.route("/")
def agency():
return "<h1>Pull up on you like agency </h1>"
@app.route("/signup")
def signup():
return "sign up"
#! we should have to register other controllers of routing jinka blueprint hmne banaya hai werna error ayega!
app.register_blueprint(appController)
app.register_blueprint(productController)
#! we are going to register all the files in the controller folder using the OS module (error)
# register_controllers(app)
if __name__ == '__main__':
app.run(debug=True)