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.
19 lines
361 B
19 lines
361 B
from flask import Flask |
|
from config import config |
|
from flask_sqlalchemy import SQLAlchemy |
|
|
|
app = Flask(config['app']) |
|
db = SQLAlchemy(app) |
|
|
|
|
|
@app.route('/kuajbang/msg/<u>&<p>', staticmethod=['GET', 'POST']) |
|
def hello_world(): # put application's code here |
|
return 'Hello World!' |
|
|
|
|
|
def msg(): |
|
db.create_all() |
|
|
|
|
|
if __name__ == '__main__': |
|
app.run()
|
|
|