A simple router with basic regex matching.