Add static route to routes only in debug mode.