-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Tracking Info Resolves #73 ## Changes <!-- What changes did you make? --> - implement all referrals page ## Testing <!-- How did you confirm your changes worked? --> - verify all functionality works ## Confirmation of Change ![image](https://github.com/TritonSE/USHS-Housing-Portal/assets/24444266/c154acbc-f024-4eea-aebc-f4367891ebfa) --------- Co-authored-by: Yashwanth Ravipati <[email protected]> Co-authored-by: PoliteUnicorn <[email protected]>
- Loading branch information
1 parent
c892194
commit 08ed025
Showing
16 changed files
with
597 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import express from "express"; | ||
|
||
import { | ||
createReferralHandler, | ||
deleteReferralHandler, | ||
editReferralHandler, | ||
} from "@/controllers/referral"; | ||
import { requireUser } from "@/middleware/auth"; | ||
import * as ReferralController from "../controllers/referral"; | ||
import { requireUser } from "../middleware/auth"; | ||
|
||
const router = express.Router(); | ||
|
||
router.post("/", requireUser, createReferralHandler); | ||
router.post("/", requireUser, ReferralController.createReferralHandler); | ||
|
||
router.put("/:id", requireUser, editReferralHandler); | ||
router.get("/", requireUser, ReferralController.getReferralsHandler); | ||
|
||
router.delete("/:id", requireUser, deleteReferralHandler); | ||
router.put("/:id", requireUser, ReferralController.editReferralHandler); | ||
|
||
router.delete("/:id", requireUser, ReferralController.deleteReferralHandler); | ||
|
||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.