Skip to content

Commit

Permalink
vue init now working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Steelwix committed Feb 13, 2023
1 parent e9e7e20 commit 2465f5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ public function index(): Response
$movie = array("id" => 1, "meta" => true, "player" => "tg");
return new JsonResponse($movie);
}
#[Route('/api/hello/{name}', name: 'api_hello')]
public function apiHelloword(string $name): Response
#[Route('/api/ask/', name: 'api_ask')]
public function apiAskHello(): Response
{
return $this->render('default/index.html.twig');
}
#[Route('/api/hello/{name}', name: 'api_name')]
public function apiHello(string $name): Response
{
return new JsonResponse($name);
}
}

0 comments on commit 2465f5f

Please sign in to comment.