aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvosjedev <vosje+git@vosjedev.net>2025-10-12 21:23:50 +0200
committervosjedev <vosje+git@vosjedev.net>2025-10-12 21:23:50 +0200
commitb4d20e7f87b83c3177e0c48d5703e359c823c3f8 (patch)
tree4512cc592a3ed8f10457c102d5ed0bb12bbe0581
parent321b834ddc06894d1a8cf938ef240dd9d8e98eb2 (diff)
downloadacit-b4d20e7f87b83c3177e0c48d5703e359c823c3f8.tar.gz
acit-b4d20e7f87b83c3177e0c48d5703e359c823c3f8.tar.bz2
acit-b4d20e7f87b83c3177e0c48d5703e359c823c3f8.tar.xz
Something with the web server, idk. seems to have an index now.
-rw-r--r--src/acit/web.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/acit/web.py b/src/acit/web.py
index ae45679..15cbe46 100644
--- a/src/acit/web.py
+++ b/src/acit/web.py
@@ -7,7 +7,12 @@ class Server():
pass
@cherrypy.expose
- def default(self):
+ def index(self,quote="nothing"):
+ return "<html><body><h1>Hi</h1><p>you said %s</p></body></html>" %quote
+
+
+ @cherrypy.expose
+ def default(self,*path,**kwargs):
return "Hello world"