ParthCodes commited on
Commit
dc818ff
·
verified ·
1 Parent(s): 1304ffe

Rename app.py to main.py

Browse files
Files changed (1) hide show
  1. app.py → main.py +2 -10
app.py → main.py RENAMED
@@ -10,19 +10,15 @@ from flask_jwt_extended import JWTManager, create_access_token
10
  from middleware.authUser import auth_user
11
  from datetime import timedelta
12
  from controllers.demo import get_initial_data
13
-
14
- from dotenv import load_dotenv
15
  import os
16
 
17
- load_dotenv()
18
-
19
  app = Flask(__name__)
20
 
21
-
22
-
23
  bcrypt = Bcrypt(app)
24
  jwt = JWTManager(app)
25
 
 
 
26
  app.config['JWT_SECRET_KEY'] = os.getenv('JWT_SECRET')
27
 
28
  # MongoDB configuration
@@ -267,9 +263,5 @@ def mindmapDemo():
267
  return get_initial_data(), 200
268
 
269
 
270
-
271
-
272
- CORS(app)
273
-
274
  if __name__ == '__main__':
275
  app.run(debug=True)
 
10
  from middleware.authUser import auth_user
11
  from datetime import timedelta
12
  from controllers.demo import get_initial_data
 
 
13
  import os
14
 
 
 
15
  app = Flask(__name__)
16
 
 
 
17
  bcrypt = Bcrypt(app)
18
  jwt = JWTManager(app)
19
 
20
+ CORS(app)
21
+
22
  app.config['JWT_SECRET_KEY'] = os.getenv('JWT_SECRET')
23
 
24
  # MongoDB configuration
 
263
  return get_initial_data(), 200
264
 
265
 
 
 
 
 
266
  if __name__ == '__main__':
267
  app.run(debug=True)