Adding public method check to Controller & Controller_Rest for URI routing