I added below code in plugin.rb file.
DiscourseRatings::Engine.routes.draw do post "/rate" => "rating#rate" post "/remove" => "rating#remove" get '/getratings' => 'rating#getRatings' end
I am able to use get “ratings” url which is /rating/getratings in AJAX Call. but when i use this url with
t2.metastudio.org domain name e.g
https://t2.metastudio.org/rating/getratings. discourse says
Oops! That page doesn’t exist or you may have to login to see it!
For example i can access categories data in using following url which is
likewise i want to access plugins get urls.
Could you tell me how to define urls in a plugin which are accessible publicly ?