Simple helper to create REST handlers