| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 24 | #[Route(path: '/app-system/{name}/generate-token', name: 'frontend.app-system.generate-token', defaults: ['_noStore' => true], methods: ['POST'])] |
||
| 25 | public function generateToken(string $name, SalesChannelContext $context): Response |
||
| 26 | { |
||
| 27 | try { |
||
| 28 | return $this->appJWTGenerateRoute->generate($name, $context); |
||
| 29 | } catch (AppException $e) { |
||
| 30 | return new JsonResponse(['message' => $e->getMessage()], $e->getStatusCode()); |
||
| 31 | } |
||
| 34 |