The server is a file that allows the receiver and the responder to give and get the proper out put based on the verb (POST, GET, PUT, DELETE) and the path. Whatever you put in your server file determines what the client gets back.
The variable that you are trying to pass needs to be considered in the “Get block” erb represents the file that you want to view