Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Proposals

node v13.14.0
version: 1.0.0
endpointsharetweet
const admin = require('firebase-admin'); const serviceAccount = JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT_KEY); admin.initializeApp({ credential: admin.credential.cert(serviceAccount) }); let db = admin.firestore(); const Koa = require("koa"); var Router = require('koa-router'); const app = new Koa(); var router = new Router(); router.get('/', (ctx, next) => { ctx.body = 'Hello World!'; }); app .use(router.routes()) .use(router.allowedMethods());
Loading…

no comments

    sign in to comment