GET  method handler is now a separate function