From a8d2c41ee431cfa67c044caf39199ec45a7141fa Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 11 Oct 2018 17:07:46 +0200 Subject: Add plaintext route --- app.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app.py') diff --git a/app.py b/app.py index a8d56a6..c8f996a 100644 --- a/app.py +++ b/app.py @@ -26,3 +26,7 @@ def get_ip(request): def index(): ip = get_ip(request) return TEMPLATE.format(ip=ip) + +@app.route('/p') +def plain(): + return get_ip(request) -- cgit v1.3.1