@SureshDhulipudi
I think there should not be any syntax-related error because it's working in localhost. also, I am not passing any parameter from Postman which can create an issue.
Regarding the Dispatcher, I am getting the same issue in the author's environment as well.
so it's looking like AEM...