I want to generate an url like this:
/photo?tags=tag1,tag2,tag3
routes file:
GET /photo controllers.Photos.list
I think that you should use a common String
and then take care about converting it to an Array
in your controller
routes:
GET /photo controllers.Photos.list(tags:String ?= "")
in Java:
public static Result list (String tags){
String[] tagsArray = tags.split(",");
// do something with tagsArray
return ok();
}