fix: import NotificationSlack correctly
This commit is contained in:
parent
7bdac8b42f
commit
40fb73ee8e
1 changed files with 5 additions and 4 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
use App\Livewire\Notifications\Discord as NotificationDiscord;
|
use App\Livewire\Notifications\Discord as NotificationDiscord;
|
||||||
use App\Livewire\Notifications\Email as NotificationEmail;
|
use App\Livewire\Notifications\Email as NotificationEmail;
|
||||||
use App\Livewire\Notifications\Telegram as NotificationTelegram;
|
use App\Livewire\Notifications\Telegram as NotificationTelegram;
|
||||||
|
use App\Livewire\Notifications\Slack as NotificationSlack;
|
||||||
use App\Livewire\Profile\Index as ProfileIndex;
|
use App\Livewire\Profile\Index as ProfileIndex;
|
||||||
use App\Livewire\Project\Application\Configuration as ApplicationConfiguration;
|
use App\Livewire\Project\Application\Configuration as ApplicationConfiguration;
|
||||||
use App\Livewire\Project\Application\Deployment\Index as DeploymentIndex;
|
use App\Livewire\Project\Application\Deployment\Index as DeploymentIndex;
|
||||||
|
|
@ -132,7 +133,7 @@
|
||||||
Route::get('/email', NotificationEmail::class)->name('notifications.email');
|
Route::get('/email', NotificationEmail::class)->name('notifications.email');
|
||||||
Route::get('/telegram', NotificationTelegram::class)->name('notifications.telegram');
|
Route::get('/telegram', NotificationTelegram::class)->name('notifications.telegram');
|
||||||
Route::get('/discord', NotificationDiscord::class)->name('notifications.discord');
|
Route::get('/discord', NotificationDiscord::class)->name('notifications.discord');
|
||||||
Route::get('/slack', App\Livewire\Notifications\Slack::class)->name('notifications.slack');
|
Route::get('/slack', NotificationSlack::class)->name('notifications.slack');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::prefix('storages')->group(function () {
|
Route::prefix('storages')->group(function () {
|
||||||
|
|
@ -286,7 +287,7 @@
|
||||||
'privateKey' => $privateKeyLocation,
|
'privateKey' => $privateKeyLocation,
|
||||||
'root' => '/',
|
'root' => '/',
|
||||||
]);
|
]);
|
||||||
if (! $disk->exists($filename)) {
|
if (!$disk->exists($filename)) {
|
||||||
return response()->json(['message' => 'Backup not found.'], 404);
|
return response()->json(['message' => 'Backup not found.'], 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -298,7 +299,7 @@
|
||||||
if ($stream === false || is_null($stream)) {
|
if ($stream === false || is_null($stream)) {
|
||||||
abort(500, 'Failed to open stream for the requested file.');
|
abort(500, 'Failed to open stream for the requested file.');
|
||||||
}
|
}
|
||||||
while (! feof($stream)) {
|
while (!feof($stream)) {
|
||||||
echo fread($stream, 2048);
|
echo fread($stream, 2048);
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
|
|
@ -306,7 +307,7 @@
|
||||||
fclose($stream);
|
fclose($stream);
|
||||||
}, 200, [
|
}, 200, [
|
||||||
'Content-Type' => 'application/octet-stream',
|
'Content-Type' => 'application/octet-stream',
|
||||||
'Content-Disposition' => 'attachment; filename="'.basename($filename).'"',
|
'Content-Disposition' => 'attachment; filename="' . basename($filename) . '"',
|
||||||
]);
|
]);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return response()->json(['message' => $e->getMessage()], 500);
|
return response()->json(['message' => $e->getMessage()], 500);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue