From 56c8611251b7bf834e22d960fa7a013decbacac7 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 18 Aug 2025 12:28:44 +0200 Subject: [PATCH] Allow settings the base url in the config --- php/bin/snips | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/bin/snips b/php/bin/snips index 4a83dba..996eb73 100755 --- a/php/bin/snips +++ b/php/bin/snips @@ -39,7 +39,7 @@ if ($getShortcut) { $file = $shortcut[1]; } -$baseUrl = 'https://snips.loken.nl/api/'; +$baseUrl = $config->get('baseUrl', 'https://snips.loken.nl/api/'); $snips = new snips($baseUrl, $apiKey); switch ($command) { @@ -68,4 +68,4 @@ switch ($command) { lexit('Unknown command: ' . $command, 1); } -lexit('Done successfully'); \ No newline at end of file +lexit('Done'); \ No newline at end of file