Skip to content

Commit

Permalink
CHE-203 Removed createProfile as it is never used.
Browse files Browse the repository at this point in the history
  • Loading branch information
brok3turtl3 committed Aug 11, 2024
1 parent 1aaf5d1 commit ad411eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 76 deletions.

This file was deleted.

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 ad411eb

Please sign in to comment.