I'm using yii-powered app as backend of public API. I created controllers/ApiController
class with actionTest
method and trying to get some data by url domain.ltd/api/test
without authorization by login/pass which usually need for another controllers (SiteController, for example). How can I do this?
I think there are few variants:
- Setup route /api/* for guest access using authManager (?)
- Something magic with UserIdentity class...