Last active
August 26, 2018 12:02
-
-
Save ishaquehassan/3795152c74e4512a50ce2b0e12e1f73d to your computer and use it in GitHub Desktop.
This file contains 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
external fun require(module:String) : dynamic | |
external var exports: dynamic | |
fun main(args: Array<String>) { | |
val fireFunctions = require("firebase-functions") | |
exports.myTestFun = fireFunctions.https.onRequest { request , response -> | |
response.send("Hi from kotlin!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment