Fix endpoints with params in path