Skip to content

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

License

Notifications You must be signed in to change notification settings

comchangs/ktor-easy-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }