Skip to content

Commit

Permalink
Authentication added for get and delete route
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanju-Basak committed May 24, 2022
1 parent d6e41ad commit 5c68202
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ const express = require("express");
require("dotenv").config({ path: "./config/dev.env" });
const { body, validationResult } = require("express-validator");

const { authenticationMiddleware } = require('./middlewares/auth')
const { authenticationMiddleware } = require("./middlewares/auth");

const {
initializeApp,
cert,
} = require("firebase-admin/app");
const {
getFirestore,
} = require("firebase-admin/firestore");
const { initializeApp, cert } = require("firebase-admin/app");
const { getFirestore } = require("firebase-admin/firestore");
const app = express();
const port = process.env.PORT || 3000;

Expand Down

0 comments on commit 5c68202

Please sign in to comment.