Split http and business logic, merge check in quiz endpoint