Sharaf needs a FromPathParam[T]
instance available:
import ba.sake.sharaf.routing.*
given FromPathParam[MyType] with {
def parse(str: String): Option[MyType] =
parseMyType(str) // impl here
}
val routes = Routes:
case GET() -> Path("pricing", param[MyType](myType)) =>
Response.withBody(s"myType = ${myType}")