http://coldfusion.com logo
#box-products
Title
# box-products
s

Simone

02/08/2022, 9:23 PM
is this wrong route(             pattern="/data/:id",             target="Api.getdata"         ).Withverbs("GET");
b

bdw429s

02/09/2022, 12:09 AM
@Simone You need to be more specific, please. What about it seems "wrong"? • What are you expecting to happen? • What is actually happening • Did you get an error?
s

Simone

02/09/2022, 3:09 PM
Copy code
route("/data/:id").withVerbs("GET").to("Api.getdata");
solved with above but i am wondering, can i pass more verbs to same method
j

jclausen

02/09/2022, 3:21 PM
Yes, you can pass a delimited list to
withVerbs
b

bdw429s

02/09/2022, 3:29 PM
Can you show the link to the ColdBox docs you have been looking at on this?
5 Views