webapp
を公開する場合の例
val root = "webapp"
pathPrefix("") {
pathEnd {
get {
getFromFile(s"$root/index.html")
}
}
} ~ {
getFromDirectory(root)
}
/
をindex.htmlにわりあてるのが少しめんどくさい。
もっと楽にやる方法ないのかな。
More than 5 years have passed since last update.
webapp
を公開する場合の例
val root = "webapp"
pathPrefix("") {
pathEnd {
get {
getFromFile(s"$root/index.html")
}
}
} ~ {
getFromDirectory(root)
}
/
をindex.htmlにわりあてるのが少しめんどくさい。
もっと楽にやる方法ないのかな。
Register as a new user and use Qiita more conveniently