2021-10-29 18:06:18 +02:00

15 lines
317 B
JavaScript

// Dependencies
const { initializeApp } = require( 'firebase-admin/app' )
const { getFirestore, FieldValue, FieldPath } = require( 'firebase-admin/firestore' )
// Admin api
const app = initializeApp()
const db = getFirestore()
module.exports = {
app: app,
db: db,
FieldValue: FieldValue,
FieldPath: FieldPath
}