Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added admin issue table api endpoint #175

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions back-end/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import url from "url";
import path from "path";
import login from "./src/routes/login.js";
import studentIssues from "./src/routes/studentIssues.js";
import adminIssues from "./src/routes/adminIssues.js";

// import multer from "multer"; - configure when required

const app = express(); // instantiate an Express object
Expand Down Expand Up @@ -45,5 +47,8 @@ app.use("/api/login", login);
// Student Side Issue Retrieval
app.use("/api/issues/student", studentIssues);

// Admin side issue retrieval
app.use("/api/issues/admin", adminIssues);

// export the express app we created to make it available to other modules
export default app;
Loading