aboutsummaryrefslogtreecommitdiffstats
path: root/src/acit/web.py
blob: 15cbe466b63a1b7525cc4538aabdb2e5ea5d1f8e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import cherrypy


class Server():
	def __init__(self):
		pass

	@cherrypy.expose
	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"