Created
April 25, 2021 06:24
-
-
Save surajsau/b29dac4b3724c8bd8b6adab7c5058693 to your computer and use it in GitHub Desktop.
Sample deeplink script using ki
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:DependsOn("io.javalin:javalin:3.13.6") | |
import io.javalin.* | |
val html="""<html> | |
<body> | |
<h1><a href="https://www.google.com">Google (External)</a></h1> | |
<h1><a href="twitter://user?screen_name=monsterhunter">Monster Hunter (Twitter)</a></h1> | |
</body> | |
</html>""" | |
val javalin = Javalin.create().apply { | |
get("deeplink") { it.html(html) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment