I am able to access newly defined get url which is get “/getbadges” => “categories#getBadges”
I defined GET url which is get “/getbadges” => “categories#getBadges” in routes.rb file.
and below getBadges method in categories_controller.rb file
def getBadges
json_data = {"name":"siddhu"}
render json: json_data
end
I ran local disocurse instance and try to access defined get url http://localhost:9292/getbadges.
I am able to acess this get url but same thing i did in GitHub - siddhudhangar/discourse-ratings · GitHub plugin. here it is not working, Can you help me out for solving this issue ?
Below i gave my github url, here you can check my code and let me know if i have made any mistakes.
https://github.com/siddhudhangar/discourse-ratings
