17 lines
233 B
Python
17 lines
233 B
Python
#! /usr/bin/python3
|
|
#encoding: utf-8
|
|
|
|
from flask import Flask
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def hello():
|
|
return "Hello World!"
|
|
|
|
@app.route('/test')
|
|
def test():
|
|
return 'Hello Test'
|
|
|
|
app.run(host='0.0.0.0',port=8082)
|
|
|