Skip to content

Commit

Permalink
Update State route
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonarafat committed Sep 7, 2023
1 parent 25bd6d4 commit 7e30e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/main.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const mainController = {};
// model initiation
const State = model.stateModel;

mainController.state = async (req, res) => {
mainController.states = async (req, res) => {
const id = req.params.id;
try {
const state = await State.findOne({ _id :id}).exec();
Expand Down

0 comments on commit 7e30e60

Please sign in to comment.