diff --git a/main.py b/main.py index b0456a7..5cf0c01 100644 --- a/main.py +++ b/main.py @@ -1,53 +1,11 @@ -from http.server import BaseHTTPRequestHandler, HTTPServer +def main(): + print("Hello from syncide-test!") + + + -class MyServerHandler(BaseHTTPRequestHandler): - def do_GET(self): - if self.path == '/': - self.send_response(200) - self.send_header("Content-type", "text/html") - self.end_headers() - - html = """ - -
This is a simple preview. wow coool. so cool
- Go to Subpage - - - """ - self.wfile.write(html.encode("utf-8")) - elif self.path == '/subpage': - self.send_response(200) - self.send_header("Content-type", "text/html") - self.end_headers() - - html = """ - -