smo fixs
This commit is contained in:
parent
45b833df6a
commit
488ee80e09
7
main.py
7
main.py
@ -7,9 +7,6 @@ database = mongoclient['pycms']
|
|||||||
posts = database['posts']
|
posts = database['posts']
|
||||||
|
|
||||||
|
|
||||||
# /post [GET]
|
|
||||||
|
|
||||||
|
|
||||||
@route('/post/<name>')
|
@route('/post/<name>')
|
||||||
def post(name):
|
def post(name):
|
||||||
'''
|
'''
|
||||||
@ -58,5 +55,5 @@ def index():
|
|||||||
return "Hello"
|
return "Hello"
|
||||||
|
|
||||||
|
|
||||||
# if __name__ == __main__:
|
if __name__ == '__main__':
|
||||||
run(host='0.0.0.0', port=8081, reloader=True, debug=True)
|
run(host='0.0.0.0', port=8081, reloader=True, debug=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user