Fix route in api.js