Allow settings the base url in the config
This commit is contained in:
@ -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');
|
Reference in New Issue
Block a user