mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-26 03:58:49 +00:00
fixes
This commit is contained in:
parent
28301a92c9
commit
53cf212175
@ -52,8 +52,13 @@ suspend fun main(vararg args: String) {
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
routing {
|
routing {
|
||||||
staticFiles("", File("WebApp/build/dist/js/productionExecutable")) {
|
val baseJsFolder = File("WebApp/build/dist/js/")
|
||||||
default("WebApp/build/dist/js/productionExecutable/index.html")
|
baseJsFolder.list() ?.forEach {
|
||||||
|
if (it == "productionExecutable" || it == "developmentExecutable") {
|
||||||
|
staticFiles("", File(baseJsFolder, it)) {
|
||||||
|
default("WebApp/build/dist/js/$it/index.html")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
post("inline") {
|
post("inline") {
|
||||||
val requestBody = call.receiveText()
|
val requestBody = call.receiveText()
|
||||||
|
Loading…
Reference in New Issue
Block a user