16 lines
494 B
Kotlin
16 lines
494 B
Kotlin
package nl.astraeus.vst.chip
|
|
|
|
import io.undertow.server.HttpHandler
|
|
import io.undertow.server.HttpServerExchange
|
|
import io.undertow.server.handlers.resource.PathResourceManager
|
|
import io.undertow.server.handlers.resource.ResourceHandler
|
|
import java.nio.file.Paths
|
|
|
|
object RequestHandler : HttpHandler {
|
|
val resourceHandler = ResourceHandler(PathResourceManager(Paths.get("web")))
|
|
|
|
override fun handleRequest(exchange: HttpServerExchange) {
|
|
resourceHandler.handleRequest(exchange)
|
|
}
|
|
}
|