Merge branch 'master' of https://github.com/failedxyz/easyctf
This commit is contained in:
commit
6e09d44228
2 changed files with 6 additions and 2 deletions
|
@ -1 +1,2 @@
|
|||
import models
|
||||
import models
|
||||
import api
|
||||
|
|
|
@ -4,8 +4,11 @@ from flask import Flask
|
|||
import config
|
||||
import json
|
||||
|
||||
from api.api import api
|
||||
|
||||
app = Flask(__name__)
|
||||
app.secret_key = config.SECRET
|
||||
app.register_blueprint(api)
|
||||
|
||||
@app.route("/api")
|
||||
def api():
|
||||
|
@ -28,4 +31,4 @@ if __name__ == "__main__":
|
|||
db.create_all()
|
||||
print db
|
||||
|
||||
app.run(host="0.0.0.0", port=8000)
|
||||
app.run(host="0.0.0.0", port=8000)
|
||||
|
|
Loading…
Reference in a new issue