fix route for api