api-router
api-router copied to clipboard
:man: RESTful router for your API in Nette Framework (@nette). Created either directly or via annotation.
| Package | version | | --- | --- | | contributte/api-router: | v4.0.0 | | nette/application: | v3.0.7 | | nette/routing | v3.0.1 | Router example: ```php $router[] =...
nenapadá někoho proč mi nefunguje CORS? potřebuji se k api dostat z jquery ` public function actionCreate() { $response = $this->getHttpResponse(); $response->addHeader('Access-Control-Allow-Origin', "*"); $response->addHeader('Access-Control-Allow-Methods', "*"); $response->addHeader('Access-Control-Allow-Headers', 'X-Requested-With'); $post = $this->getRequest()->getPost();...
I would like to create a route with email (www.api.com/api/users/[email protected]/), but I always get 404 error even with `%40` instead of `@`. Is there a way how to do it?...
When I define custom matching routes and specify HTTP method for them, so that I'm able to access to specified route with any HTTP method. Example of router definitions: ```...
Hi, can you please release 5.1.0 with commit 206bde884bfb72e2489ce12d0aa8592a0fe6b069 There are fixes with new nette and also remaining php 8.1 support...