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