Skip to content

Commit

Permalink
Try other way for routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Huluti committed Nov 24, 2024
1 parent 207714a commit 1f3c88f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Controller/HulutiAltchaChallengeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
$this->hmacKey = $hmacKey;
}

#[Route('/huluti_altcha/challenge', name: 'huluti_altcha_challenge')]
#[Route('/challenge', name: 'huluti_altcha_challenge')]
public function index(): JsonResponse
{
$options = new ChallengeOptions([
Expand Down
7 changes: 5 additions & 2 deletions src/Resources/config/routes.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
huluti_altcha:
resource: "../../src/Controller/"
type: attribute
prefix: /huluti_altcha
type: attribute
resource:
path: '@HulutiAltchaBundle/src/Controller/'
namespace: Huluti\AltchaBundle\Controller

0 comments on commit 1f3c88f

Please sign in to comment.