mathiasbn
08/15/2017, 9:17 AM@location("/gallery/{galleryid}/{prettyName}") class GalleryLocation(val galleryid: Int, val prettyName: String? = null) : Location
@location("/gallery/view/{pictureid}") class GalleryPictureLocation(val pictureid: Int, val overlay:String?=null) : Location
When i request with url: /gallery/view/91270
I somehow end up Route.handle
with a GalleryLocation
instead of the expected GalleryPictureLocation
.
This give me a number format exception because it expects view
to be an int given that Location.roberto.guerra
08/15/2017, 2:14 PM/gallery/view/someName
.mathiasbn
08/15/2017, 6:26 PM