easyctf-2017/server/app.py

76 lines
1.4 KiB
Python
Raw Normal View History

2015-12-21 07:04:00 +00:00
from flask import Flask
2015-12-21 16:08:47 +00:00
import sys
2015-12-21 21:08:50 +00:00
import config
2015-12-21 16:08:47 +00:00
2015-12-21 07:04:00 +00:00
app = Flask(__name__)
2015-12-21 21:08:50 +00:00
app.secret_key = config.SECRET
2015-12-21 07:04:00 +00:00
#Home Page
2015-12-21 07:04:00 +00:00
@app.route("/")
def hello_world():
return "Hello, EasyCTF!"
#Login Page
2015-12-21 07:09:23 +00:00
@app.route('/login')
def login():
return "EasyCTF Login"
#Registration Page
2015-12-21 07:09:23 +00:00
@app.route('/register')
def register():
return "EasyCTF Register"
#Scoreboard Page
2015-12-21 07:09:23 +00:00
@app.route('/scoreboard')
def scoreboard():
return "EasyCTF Scoreboard"
#Problems Page
2015-12-21 07:09:23 +00:00
@app.route('/problems')
def problems():
return "EasyCTF Problems"
2015-12-21 19:43:51 +00:00
#Account Page
@app.route('/account')
def account():
return "EasyCTF Account"
#Programming Page
@app.route('/programming')
def programming():
return "EasyCTF Programming"
#Chat Page
@app.route('/chat')
def chat():
return "EasyCTF Chat"
#About Page
@app.route('/about')
def about():
return "EasyCTF About"
#Forgot Password Page
@app.route('/forgot_password')
def forgot_password():
return "EasyCTF Forgot Password"
#Logout Page
@app.route('/logout')
def logout():
return "EasyCTF Logout"
#Rules Page
@app.route('/rules')
def rules():
return "EasyCTF Rules"
#Team Page
@app.route('/team')
def team():
return "EasyCTF Team"
#Shell Page
@app.route('/shell')
def shell():
return "EasyCTF Shell"
#Updates Page
@app.route('/updates')
def updates():
return "EasyCTF Updates"
#Reset Password Page
@app.route('/reset_password')
def reset_password():
return "EasyCTF Reset"
2015-12-21 16:08:47 +00:00
if __name__ == "__main__":
app.debug = "--debug" in sys.argv
app.run(port=8000)