| 1 |
<?php |
| 2 |
|
| 3 |
namespace ReviewX\Rest\Controllers; |
| 4 |
|
| 5 |
\defined("ABSPATH") || exit; |
| 6 |
use ReviewX\Utilities\Helper; |
| 7 |
use ReviewX\WPDrill\Contracts\InvokableContract; |
| 8 |
class FileController implements InvokableContract |
| 9 |
{ |
| 10 |
public function __invoke() |
| 11 |
{ |
| 12 |
} |
| 13 |
public function upload($request) |
| 14 |
{ |
| 15 |
$file = $request->get_file('file'); |
| 16 |
$response = $this->categoryService->processCategoryForSync($file); |
| 17 |
return Helper::saasResponse($response); |
| 18 |
} |
| 19 |
} |
| 20 |
|