diff --git a/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt b/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt index 894baf7f48..d5b16e9ea7 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt @@ -5,6 +5,8 @@ import io.ktor.application.call import io.ktor.application.install import io.ktor.features.ContentNegotiation import io.ktor.http.ContentType +import io.ktor.http.content.resources +import io.ktor.http.content.static import io.ktor.jackson.JacksonConverter import io.ktor.response.respond import io.ktor.routing.get @@ -49,6 +51,7 @@ public class WebServer @Inject constructor( get("/caches/{id}") { cachesController.show(call) } get("/caches/{id}.zip") { cachesController.export(call) } get("/caches/{id}.json") { cachesController.exportKeys(call) } + static("/static") { resources("/org/openrs2/archive/static") } } }.start(wait = true) } diff --git a/archive/src/main/resources/org/openrs2/archive/static/css/openrs2.css b/archive/src/main/resources/org/openrs2/archive/static/css/openrs2.css new file mode 100644 index 0000000000..ddc3a1f9ef --- /dev/null +++ b/archive/src/main/resources/org/openrs2/archive/static/css/openrs2.css @@ -0,0 +1,3 @@ +html { + overflow-y: scroll; +} diff --git a/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html b/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html index 90870f6ade..bfd6d96521 100644 --- a/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html +++ b/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html @@ -3,6 +3,7 @@