Skip to content

Commit

Permalink
rename controller to controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
amitamrutiya committed Oct 21, 2023
1 parent 157be2f commit 209496d
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controller/Auth.js → controllers/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ exports.login = async (req, res) => {
}
};

// ChangePassowrd
exports.changePassowrd = async (req, res) => {
// ChangePassword
exports.changePassword = async (req, res) => {
try {
// Fetch data from request body
const { oldPassword, newPassword, confirmNewPassword } = req.body;
Expand Down
2 changes: 1 addition & 1 deletion controller/Category.js → controllers/Category.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports.createCategory = async (req, res) => {
};

//getAllcategories handler function
exports.showAllcategories = async (req, res) => {
exports.showAllCategories = async (req, res) => {
try {
//fetch all categories
const allCategories = await Category.find(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 209496d

Please sign in to comment.