Skip to content

Commit

Permalink
2fa auth with node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wpcodevo committed Oct 3, 2022
1 parent 9acd737 commit 78301d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { PrismaClient } from "@prisma/client";
import express, { Request, Response } from "express";
import cors from "cors";
import authRouter from "./routes/auth.route";
import morgan from "morgan";

export const prisma = new PrismaClient();
Expand All @@ -25,9 +26,8 @@ async function main() {
});
});

// Register the API Routes
app.use("/api/auth", authRouter);

// Catch All
app.all("*", (req: Request, res: Response) => {
return res.status(404).json({
status: "fail",
Expand Down

0 comments on commit 78301d2

Please sign in to comment.