24 lines
662 B
PHP
Executable File
24 lines
662 B
PHP
Executable File
<?php
|
|
|
|
use App\Http\Controllers\PayPalController;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Illuminate\Support\Facades\Process;
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "api" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::post('/git-hook', function(){
|
|
$result = Process::run('git pull');
|
|
|
|
return $result->errorOutput();
|
|
});
|
|
|