File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1010use OCA \NCGoogleAnalytics \Config ;
1111use OCA \NCGoogleAnalytics \Service \Consent \IConsentService ;
1212use OCP \AppFramework \Controller ;
13+ use OCP \AppFramework \Http \Attribute \NoAdminRequired ;
14+ use OCP \AppFramework \Http \Attribute \NoCSRFRequired ;
15+ use OCP \AppFramework \Http \Attribute \PublicPage ;
1316use OCP \AppFramework \Http \DataDownloadResponse ;
1417use OCP \AppFramework \Http \TextPlainResponse ;
1518use OCP \IRequest ;
@@ -33,12 +36,11 @@ public function __construct(
3336 }
3437
3538 /**
36- * @NoAdminRequired
37- * @NoCSRFRequired
38- * @PublicPage
39- *
4039 * @return TextPlainResponse|DataDownloadResponse
4140 */
41+ #[NoAdminRequired]
42+ #[NoCSRFRequired]
43+ #[PublicPage]
4244 public function tracking (): TextPlainResponse |DataDownloadResponse {
4345 $ gtmId = $ this ->config ->getTrackingKey ();
4446
You can’t perform that action at this time.
0 commit comments