Use Daikon Routing in your AWS Lambda
- 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'
- 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>
class MyHandler : HttpHandler() {
override fun routing() {
get("/") { req, res -> res.write("Hello, I'm a daikon-lambda!") }
}
}
- Documentation: https://daikonweb.github.io
- Examples: https://github.com/DaikonWeb/daikon-examples
This project is licensed under the Apache License 2.0 - see the LICENSE file for details