Support routes that start with /api (fixes #966)