Remove a route from the authenticated user’s favorites. Users can favorite multiple routes and remove them individually.
Authentication
This endpoint requires authentication. Include a valid Bearer token in the Authorization header.
Path Parameters
UUID of the route to remove from favoritesExample: 987e6543-e21b-12d3-a456-426614174000
Response
Indicates if the request was successful
Success message confirming the route was removed from favorites
Example Request
curl -X DELETE https://api.losinmaduros.com/api/routes/987e6543-e21b-12d3-a456-426614174000/favorites \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Example Response
{
"success": true,
"message": "Route removed from favorites successfully"
}
Error Responses
Invalid or missing authentication token{
"success": false,
"error": "Unauthorized"
}
The specified route is not in the user’s favorites{
"success": false,
"error": "Favorite not found"
}