spring-framework / org.springframework.web.reactive.resource / VersionStrategy / removeVersion

removeVersion

abstract fun removeVersion(requestPath: String, version: String): String

Remove the version from the request path. It is assumed that the given version was extracted via #extractVersion(String).

Parameters

requestPath - the request path of the resource being resolved

version - the version obtained from #extractVersion(String)

Return
the request path with the version removed