56 lines
1.0 KiB
PHP
56 lines
1.0 KiB
PHP
<?php
|
|
|
|
class Server
|
|
{
|
|
public $host;
|
|
public $urlServiceSpota;
|
|
public $secretKeyRobot = 'robotInformatikaKu4t!2!123';
|
|
|
|
public function __construct()
|
|
{
|
|
$appUrl = rtrim(getenv('APP_URL') ?: 'https://spota.untan.ac.id', '/');
|
|
$this->host = $appUrl.'/konsultasi';
|
|
$this->urlServiceSpota = $appUrl.'/steven/API';
|
|
}
|
|
|
|
public function getSecretKeyRobot()
|
|
{
|
|
return $this->secretKeyRobot;
|
|
}
|
|
|
|
public function getSpotaServiceURL()
|
|
{
|
|
return $this->urlServiceSpota;
|
|
}
|
|
|
|
public function getAPIUrl()
|
|
{
|
|
return $this->host.'/API/web';
|
|
}
|
|
|
|
public function getHostUrl()
|
|
{
|
|
return $this->host;
|
|
}
|
|
|
|
public function getLoginPage()
|
|
{
|
|
return $this->host;
|
|
}
|
|
|
|
public function getDataTableURL()
|
|
{
|
|
return $this->host.'/API/datatable';
|
|
}
|
|
|
|
public function getPrintUrl()
|
|
{
|
|
return $this->host.'/print';
|
|
}
|
|
|
|
public function getBerkasUrl()
|
|
{
|
|
return $this->host.'/berkas';
|
|
}
|
|
}
|