Create app with no login controller

hi my friends ,
i want to create an app that dont need to force login ,
for example i have a controller named Xcontroller , i want user access this controller without login . because this controller will use a server response form external url and want to check some validation ,
i use https://doc.owncloud.org/server/10.0/developer_manual/core/externalapi.html but i cant understand API job , can some body please guide me?
thanks a lot

You can add the annotation "@PublicPage" to the controller method which is returning the page.

see https://github.com/owncloud/core/blob/baf07a7755009e76dcb10cf243330070ec41f194/apps/files_sharing/lib/Controllers/ShareController.php#L138

thanks a lot, you solve it <3

1 Like