Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcel mabez

View GitHub Profile
@jdkanani
jdkanani / Server.py
Last active Aug 4, 2020
Python SimpleHTTPServer : Routing sample
View Server.py
#!/usr/bin/env python
import os
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
ROUTES = [
('/', '/var/www/doc-html')
]
class MyHandler(SimpleHTTPRequestHandler):