Skip to content

Commit 65be3de

Browse files
committed
proof-of-concept webapp implementation
1 parent d6c9612 commit 65be3de

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

app.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from flask import Flask, request
2+
import requests
3+
4+
app = Flask(__name__)
5+
6+
@app.route('/display')
7+
def display_file():
8+
print(request.args.get('file'))
9+
return requests.get(request.args.get('file')).text
10+
11+
@app.route('/')
12+
def hello_world():
13+
return 'Hello World!'
14+
15+
16+
if __name__ == '__main__':
17+
app.run(port=4000, debug=True)

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Flask==1.0.2
2+
requests==2.21.0

0 commit comments

Comments
 (0)