20 lines
338 B
Python
20 lines
338 B
Python
from .webpylike import Response
|
|
from .webpylike import View
|
|
from .webpylike import WebPyApp
|
|
|
|
|
|
urls = ("/", "index", "/about", "about")
|
|
|
|
|
|
class index(View):
|
|
def GET(self):
|
|
return Response("Hello World")
|
|
|
|
|
|
class about(View):
|
|
def GET(self):
|
|
return Response("This is the about page")
|
|
|
|
|
|
app = WebPyApp(urls, globals())
|