Archived
Updated env vars
Update sample_env
This commit is contained in:
1 parent
f46853f686
commit
8cb8353cc5
3 files changed
+5
-2
No files matched your search
@@ -12,7 +12,7 @@ class WebhookController extends Controller
|
||||
|
||||
public function webHookSend(String $payload) {
|
||||
$data = ["text" => $payload];
|
||||
$response = Http::post(env('SLACK_WEBHOOK_URL'), $data);
|
||||
$response = Http::post(env('BOT_SLACK_WEBHOOK_URL'), $data);
|
||||
}
|
||||
|
||||
public function sendQuote(Request $request)
|
||||
|
||||
@@ -15,7 +15,7 @@ class HeaderAuth
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
if ($request->header('X-BOTAUTH') !== env('X_BOTAUTH'))
|
||||
if ($request->header('X-BOTAUTH') !== env('BOT_X_BOTAUTH'))
|
||||
{
|
||||
return response('Unauthorized', 401);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user