Created
May 3, 2020 02:29
-
-
Save Chamuth/57cd842c49bd055d96b16e9d31b2c19b 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
const admin = require("firebase-admin"); | |
var serviceAccount = require("./serviceAccountKey.json"); | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), | |
databaseURL: "https://vlearn-lanka.firebaseio.com", | |
storageBucket: "vlearn-lanka.appspot.com" | |
}); | |
app.get("/", (req, res) => | |
{ | |
bucket.getFiles({directory: "/organizations/qsqL7rxYbQSaEyO37edZ/shared/2FiakID2Ywcq2CK3e6aN"}, (err, files, next, response) => | |
{ | |
res.json(files); | |
}); | |
// res.render("pages/index"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment