Skip to content

Commit

Permalink
Update app.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
CynicDog authored Dec 28, 2024
1 parent 870388a commit 21bd179
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 7_auth/7_1_express_js/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import express from "express";
import cookieParser from "cookie-parser";
import { AuthController } from "./controllers/AuthController";
import {GitHubController} from "./controllers/GitHubController"; // Import the RedisController class
import { GitHubController } from "./controllers/GitHubController";

const app = express();
const PORT = 3000;

const authController = new AuthController();
const protectedController = new GitHubController();
const githubController = new GitHubController();

app.use(cookieParser());
app.use(express.json());
Expand All @@ -21,7 +21,7 @@ app.get("/callback", (req, res) =>
)

app.get("/github/repositories", (req, res) =>
protectedController.getRepositories(req, res)
githubController.getRepositories(req, res)
)

// Start the Express server
Expand Down

0 comments on commit 21bd179

Please sign in to comment.