Add consultation module assets and libraries
This commit is contained in:
55
konsultasi/conf/class.server.php
Normal file
55
konsultasi/conf/class.server.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user