backend refactoring - merge all /backend routes with /api endpoints