Allow settings the base url in the config

This commit is contained in:
Tim
2025-08-18 12:28:44 +02:00
parent 77c9a0ab62
commit 56c8611251

View File

@ -39,7 +39,7 @@ if ($getShortcut) {
$file = $shortcut[1]; $file = $shortcut[1];
} }
$baseUrl = 'https://snips.loken.nl/api/'; $baseUrl = $config->get('baseUrl', 'https://snips.loken.nl/api/');
$snips = new snips($baseUrl, $apiKey); $snips = new snips($baseUrl, $apiKey);
switch ($command) { switch ($command) {
@ -68,4 +68,4 @@ switch ($command) {
lexit('Unknown command: ' . $command, 1); lexit('Unknown command: ' . $command, 1);
} }
lexit('Done successfully'); lexit('Done');