Hey there, is it possible to accept a parameter in a router?
get "/reverse/{yourValue}" do
send_resp(conn, 200, "Normalized your value!")
end
Why?
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?