Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chamuth/57cd842c49bd055d96b16e9d31b2c19b to your computer and use it in GitHub Desktop.
Save Chamuth/57cd842c49bd055d96b16e9d31b2c19b to your computer and use it in GitHub Desktop.
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