<https://kotlinlang.slack.com/archives/C0A974TJ9/p...
# ktor
d
d
How are you installing the feature? Which path have you tried to access in the browser? Which webjar artifact have you included in your project?
d
sorry for the late reply:
Copy code
install(Webjars) {
        path = "swagger"
    }
that's how I install it, I am trying to access localhost:8080/swagger/swagger-ui. The webjar is https://mvnrepository.com/artifact/org.webjars/swagger-ui
but it doesn't even hit webjar interceptor until I register something under "/" or "/swagger"
d
have you tried
path = "/swagger/"
?
It seems that it requires the filename. So instead of localhost:8080/swagger/swagger-ui I guess you should provide an actual js file or something
looking at the content of that JAR, I guess an example should be
/swagger/swagger-ui/swagger-ui.js
or
/swagger/swagger-ui/index.html