From 15e756b7f4e90ebcb7aa5b5266f53cc6e40fbc25 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 4 Mar 2025 10:39:12 +0100 Subject: [PATCH] docs: change cors annotation to attribute Signed-off-by: Daniel Kesselberg --- developer_manual/digging_deeper/rest_apis.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer_manual/digging_deeper/rest_apis.rst b/developer_manual/digging_deeper/rest_apis.rst index 8a634f240..cb3b0dd69 100644 --- a/developer_manual/digging_deeper/rest_apis.rst +++ b/developer_manual/digging_deeper/rest_apis.rst @@ -6,7 +6,7 @@ REST APIs .. sectionauthor:: Bernhard Posselt -Offering a RESTful API is not different from creating a :doc:`route <../basics/routing>` and :doc:`controllers <../basics/controllers>` for the web interface. It is recommended though to inherit from ApiController and add **@CORS** annotations to the methods so that `web applications will also be able to access the API `_. +Offering a RESTful API is not different from creating a :doc:`route <../basics/routing>` and :doc:`controllers <../basics/controllers>` for the web interface. It is recommended though to inherit from ApiController and add ``#[CORS]`` attribute to the methods so that `web applications will also be able to access the API `_. .. code-block:: php