Skip to content

Instantly share code, notes, and snippets.

@ishaquehassan
Last active August 26, 2018 12:02
Show Gist options
  • Save ishaquehassan/3795152c74e4512a50ce2b0e12e1f73d to your computer and use it in GitHub Desktop.
Save ishaquehassan/3795152c74e4512a50ce2b0e12e1f73d to your computer and use it in GitHub Desktop.
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