aboutsummaryrefslogtreecommitdiff
path: root/server/aio/src/main
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-17 16:15:56 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-17 16:15:56 +0100
commitd391ce632be29c49a612c64eb5f720238a46844d (patch)
treea0a8b92c9ec550a5c794fc6edaf9fd71e1621490 /server/aio/src/main
parentaa7e28e799ce19f04c6c33782ea8d25ef4c3bb98 (diff)
downloadLocalTransactionLedger-d391ce632be29c49a612c64eb5f720238a46844d.tar.gz
LocalTransactionLedger-d391ce632be29c49a612c64eb5f720238a46844d.tar.bz2
LocalTransactionLedger-d391ce632be29c49a612c64eb5f720238a46844d.zip
feat(server): Add all in one http server
Diffstat (limited to 'server/aio/src/main')
-rw-r--r--server/aio/src/main/kotlin/moe/nea/ledger/server/aio/AIO.kt20
1 files changed, 20 insertions, 0 deletions
diff --git a/server/aio/src/main/kotlin/moe/nea/ledger/server/aio/AIO.kt b/server/aio/src/main/kotlin/moe/nea/ledger/server/aio/AIO.kt
new file mode 100644
index 0000000..e59301f
--- /dev/null
+++ b/server/aio/src/main/kotlin/moe/nea/ledger/server/aio/AIO.kt
@@ -0,0 +1,20 @@
+package moe.nea.ledger.server.aio
+
+import io.ktor.server.application.Application
+import io.ktor.server.http.content.singlePageApplication
+import io.ktor.server.routing.Routing
+import moe.nea.ledger.server.core.AIOProvider
+
+
+class AIO : AIOProvider {
+ override fun Routing.installExtraRouting() {
+ singlePageApplication {
+ useResources = true
+ filesPath = "ledger-web-dist"
+ defaultPage = "index.html"
+ }
+ }
+
+ override fun Application.module() {
+ }
+} \ No newline at end of file