sbyrne
02/28/2019, 2:40 PMtipsy
02/28/2019, 3:52 PMsbyrne
02/28/2019, 4:04 PM{name}/{subpath...}
(or {name}/*
in javalin) under which the parsing of the subpath (in both the URL and inside JSON) have different rules depending on {name}
.tipsy
02/28/2019, 5:00 PMsbyrne
02/28/2019, 5:55 PMroute("{name}")
that puts an object that contains the `name`'s configuration and ObjectMapper
into the context, and wrote a custom ContentConverter
that gets it from the context and uses it.before
in path(":name")
that puts the ObjectMapper in the context. To use it I wrote an extension function Context.writeWithMyCustomMapper(obj:Any)
that gets the ObjectMapper and writes to objectWriter
.tipsy
02/28/2019, 7:29 PM