From 36d810d5851c28d2be0c977104ae2807816e70c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 5 Dec 2019 09:02:38 +0100 Subject: [PATCH] Web --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 12e2a02..170bf8a 100644 --- a/README.md +++ b/README.md @@ -2411,8 +2411,8 @@ import json ### Run ```python -run(host='localhost', port=8080) -run(host='0.0.0.0', port=80, server='cherrypy') +run(host='localhost', port=8080) # Runs locally. +run(host='0.0.0.0', port=80, server='cherrypy') # Runs globally. ``` ### Static Request diff --git a/index.html b/index.html index 7f402f8..3a9a9ae 100644 --- a/index.html +++ b/index.html @@ -2076,8 +2076,8 @@ print(link, ver) import json -

Run

run(host='localhost', port=8080)
-run(host='0.0.0.0', port=80, server='cherrypy')
+

Run

run(host='localhost', port=8080)                 # Runs locally.
+run(host='0.0.0.0', port=80, server='cherrypy')  # Runs globally.
 

Static Request

@route('/img/<image>')