-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.py
More file actions
26 lines (20 loc) · 679 Bytes
/
app.py
File metadata and controls
26 lines (20 loc) · 679 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
from flask import Flask, render_template
from api.auth import auth_blueprint
from api.logs import logs_blueprint
def create_app():
app = Flask(__name__)
# HTML 페이지 라우트
@app.route('/')
def victim():
return render_template('victim.html')
@app.route('/dashboard')
def dashboard():
return render_template('dashboard.html')
# API 블루프린트 등록
app.register_blueprint(auth_blueprint, url_prefix='/api/auth')
app.register_blueprint(logs_blueprint, url_prefix='/api/logs')
return app
if __name__ == '__main__':
print("start")
app = create_app()
app.run(debug=True, host='0.0.0.0', port=3000)