You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
408 B
15 lines
408 B
6 months ago
|
from flask import Flask
|
||
|
from db.model import db
|
||
|
from config import *
|
||
|
app = Flask(__name__)
|
||
|
app.config["SQLALCHEMY_DATABASE_URI"] = DB_URI
|
||
|
db.init_app(app)
|
||
|
|
||
|
@app.route('/', methods=['GET', 'POST'])
|
||
|
def homepage():
|
||
|
return {'message': 'Cocks were sucked !'}, 200
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
with app.app_context():
|
||
|
db.create_all()
|
||
|
app.run(host='0.0.0.0', port=9999, debug=True)
|