Skip to content

DaikonWeb/daikon-lambda

Repository files navigation

Daikon Lambda

Daikon

Use Daikon Routing in your AWS Lambda

How to add Daikon Lambda to your project

daikon-lambda

Gradle

  • Add JitPack in your root build.gradle at the end of repositories:
repositories {
    ...
    maven { url 'https://jitpack.io' }
}
  • Add the dependency
implementation 'com.github.DaikonWeb:daikon-lambda:1.4.0'

Maven

  • Add the JitPack repository to your build file
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
  • Add the dependency
<dependency>
    <groupId>com.github.DaikonWeb</groupId>
    <artifactId>daikon-lambda</artifactId>
    <version>1.4.0</version>
</dependency>

Getting Started

class MyHandler : HttpHandler() {
    override fun routing() {
        get("/") { req, res -> res.write("Hello, I'm a daikon-lambda!") }
    }
}

Resources

Authors

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details