Skip to content

Commit

Permalink
[WDCC] Fix cross module compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray-F committed Nov 15, 2022
1 parent 0e75711 commit b5d860e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/src/routes/api/staff.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { Router } from "express";
import retrieveAuthorisedStaffList from "../../db/daos/staffDao";
import AccessLevel from "../../../../frontend/src/enums/route.access.level";

const router = Router();
const HTTP_OK = 200;

const AccessLevel = {
STAFF: "staff",
USER: "user"
}

// retrieve all authorised staff users
router.get("/:firebaseID", async (req, res) => {
const staff = await retrieveAuthorisedStaffList(req.params.firebaseID);
Expand Down

0 comments on commit b5d860e

Please sign in to comment.