Skip to content

Instantly share code, notes, and snippets.

View blenderskool's full-sized avatar
💭
Thinking...

Akash Hamirwasia blenderskool

💭
Thinking...
View GitHub Profile
@blenderskool
blenderskool / server.py
Created June 9, 2020 16:46 — forked from martijnvermaat/server.py
SimpleHTTPServer with history API fallback
#!/usr/bin/env python
"""
Modification of `python -m SimpleHTTPServer` with a fallback to /index.html
on requests for non-existing files.
This is useful when serving a static single page application using the HTML5
history API.
"""