Give parameters to Plug Route?

Hey there, is it possible to accept a parameter in a router?

get "/reverse/{yourValue}" do
  send_resp(conn, 200, "Normalized your value!")


I want to send a request to /reverse with the value olleh, then it will respond with hello as its the reversed version. However, how do I accept values? IDs would work like this :id but what about strings?

get "/reverse/:name" do
  send_resp(conn, 200, String.reverse(name))

:name will bind to a variable named name

You can also look it up in path_params attribute (which is a map) of conn

tysm! didnt thought its that easy lol oops