Skip to content

Commit

Permalink
getcourse
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Karachev committed Oct 18, 2024
1 parent 83f3485 commit 2043518
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions frontend/controllers/GetcourseController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

namespace frontend\controllers;

use Yii;
use yii\web\Controller;
use yii\web\Request;

class GetcourseController extends Controller
{
public $enableCsrfValidation = false;

public function actionWebhook(Request $request): void
{
$rawBody = $request->rawBody;
file_put_contents(Yii::getAlias('@public/upload/' . time()), $rawBody);
}
}

0 comments on commit 2043518

Please sign in to comment.