blob: 15ecde93e7b1c7a4baf076c7b1ce9479f955072e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/python3
# Example flask application for containerization
#
# Copyright (C) 2021 Bruce Ashfield <bruce.ashfield@gmail.com>
# License: MIT (see COPYING.MIT at the root of the repository for terms)
from flask import Flask
app = Flask(__name__)
@app.route('/yocto/', methods=['GET', 'POST'])
def welcome():
return "Hello from Yocto!"
@app.route('/oe/', methods=['GET', 'POST'])
def welcometooe():
return "Hello from OpenEmbedded!"
if __name__ == '__main__':
app.run(host='0.0.0.0', port=9000)
|