Skip to content

Commit

Permalink
Merge pull request #175 from Code-Hammers/CHE-203/BE-CONTROLLER-TESTS…
Browse files Browse the repository at this point in the history
…-createProfile

[CHE-203] BE CONTROLLER TESTS - createProfile
  • Loading branch information
brok3turtl3 authored Aug 14, 2024
2 parents a40bfc8 + 8932518 commit 5d2075a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 89 deletions.

This file was deleted.

3 changes: 1 addition & 2 deletions server/controllers/profileController/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import createProfile from './createProfile/createProfile';
import getAllProfiles from './getAllProfiles/getAllProfiles';
import getProfileById from './getProfileById/getProfileById';
import updateProfile from './updateProfile/updateProfile';

export { createProfile, getAllProfiles, getProfileById, updateProfile };
export { getAllProfiles, getProfileById, updateProfile };
8 changes: 1 addition & 7 deletions server/routes/profileRoutes.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import express from 'express';
import { protect } from '../middleware/authMiddleware';
import {
createProfile,
getAllProfiles,
getProfileById,
updateProfile,
} from '../controllers/profileController';
import { getAllProfiles, getProfileById, updateProfile } from '../controllers/profileController';

const router = express.Router();

router.use(protect); /* Require Auth for ALL routes below */

router.post('/', createProfile);
router.put('/:userID', updateProfile);
router.get('/:userID', getProfileById);
router.get('/', getAllProfiles);
Expand Down

0 comments on commit 5d2075a

Please sign in to comment.