I am making this notification service which provides an api. Apis are actually static functions of one class 'Notifications'. One of the api functions is:getNotifications.
I need to access this class like this way:
mydomain/notification/getNotifications/$userId
I know I can make a module, or a controller, but I don't think this is the proper shape for a simple service component. Is there any other way around in yii?