Skip to content

Commit

Permalink
removed test code
Browse files Browse the repository at this point in the history
  • Loading branch information
michellelin1 committed Jan 23, 2024
1 parent 69e2ab0 commit 738208a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
5 changes: 1 addition & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ require('dotenv').config();
// routes
const users = require('./routes/users');

const testRouter = require('./routes/verTest');

const { authRouter, verifyToken } = require('./routes/auth');
const { authRouter } = require('./routes/auth');

const email = require('./routes/nodeMailer');

Expand All @@ -35,7 +33,6 @@ app.use('/users', users);
app.use('/catalog', catalogRouter);
app.use('/nodeMailer', email);
app.use('/auth', authRouter);
app.use('/verTest', [verifyToken, testRouter]);

app.listen(PORT, () => {
console.log(`Server listening on ${PORT}`);
Expand Down
2 changes: 0 additions & 2 deletions firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ const admin = require('firebase-admin');

require('dotenv').config();

console.log('Current working directory:', process.cwd());

const credentials = require('./firebase-adminsdk.json');

admin.initializeApp({ credential: admin.credential.cert(credentials) });
Expand Down
2 changes: 1 addition & 1 deletion routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ userRouter.post('/create', async (req, res) => {
}
});

userRouter.put('/:uid', async (req, res) => {
userRouter.put('/approve/:uid', async (req, res) => {
try {
const { uid } = req.params;
const updatedApproval = await db.query(
Expand Down
16 changes: 0 additions & 16 deletions routes/verTest.js

This file was deleted.

0 comments on commit 738208a

Please sign in to comment.