Forgot to register the OPTIONS method :3
This commit is contained in:
parent
d38ecf2f90
commit
fd24b59e89
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
namespace Syokuhou\V1;
|
||||
|
||||
use Index\Http\Routing\{HttpGet,RouteHandler,RouteHandlerTrait};
|
||||
use Index\Http\Routing\{HttpGet,HttpOptions,RouteHandler,RouteHandlerTrait};
|
||||
use RPCii\Client\RpcClient;
|
||||
|
||||
class V1EmotesRoutes implements RouteHandler {
|
||||
|
@ -11,6 +11,7 @@ class V1EmotesRoutes implements RouteHandler {
|
|||
private RpcClient $rpc
|
||||
) {}
|
||||
|
||||
#[HttpOptions('/')]
|
||||
#[HttpGet('/')]
|
||||
public function getEmotes($response, $request) {
|
||||
$response->setHeader('Access-Control-Allow-Origin', '*');
|
||||
|
|
Loading…
Reference in a new issue