Skip to content

Commit 2f2a6ba

Browse files
committed
Make host configurable
1 parent 5500c46 commit 2f2a6ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Client.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ public function highlight($blocks)
3737

3838
protected function request(Collection $blocks)
3939
{
40+
$host = config('torchlight.host', 'https://api.torchlight.dev');
41+
4042
$response = Http::timeout(5)
4143
->withToken(config('torchlight.token'))
42-
->post('https://torchlight.dev/api/highlight', [
44+
->post($host . '/highlight', [
4345
'blocks' => $this->blocksAsRequestParam($blocks)->values(),
4446
])
4547
->json();

0 commit comments

Comments
 (0)