Added get_request function to the frontend