How to getting data with another variable/field of params(not an ID)

Hi guys i want to ask you something, how can i get the data with another variable of params, serverles default is like this /path/{id} , but i want to something like this /path/{email}. Thanks! :slight_smile: