Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

ktor-easy-spa

A feature of ktor for setting up single page application like Angular, React and so on

Maven Central

Setting

Gradle Kotlin DSL

compile("work.jeong.murry.ktor.features:ktor-easy-spa:1.0.1")

Maven

<dependency>
  <groupId>work.jeong.murry.ktor.features</groupId>
  <artifactId>ktor-easy-spa</artifactId>
  <version>1.0.1</version>
</dependency>

Gradle

dependencies {
    implementation("work.jeong.murry.ktor.features", "ktor-easy-spa", "1.0.1")
}

Usage

Just install the feature in your application with:

    install(EasySpaFeature)

or

    install(EasySpaFeature) {
        staticRootDocs = "./htdocs"
        defaultFile = "index.html"
        apiUrl = "/api"
    }