Fix API path prefixing

Fix #255