Skip to content

Commit

Permalink
Replace URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Mar 21, 2024
1 parent b86be09 commit 5c4d2e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/GitHubController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class GitHubController extends Controller
{
public function __invoke(PullRequest $request, Telegram $telegram)
public function release(PullRequest $request, Telegram $telegram)
{
$telegram->publish($request->dto());

Expand Down
5 changes: 3 additions & 2 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
use App\Http\Controllers\GitHubController;

app('router')
->name('webhook')
->post('webhook', GitHubController::class);
->name('release')
->controller(GitHubController::class)
->post('release', 'release');

0 comments on commit 5c4d2e1

Please sign in to comment.