Adaptation of the Hub URLs for the newsroom.

This commit is contained in:
Denis Flaven
2018-12-03 17:26:22 +01:00
parent 387c166985
commit d392b9c0f6
2 changed files with 4 additions and 4 deletions

View File

@@ -17,9 +17,9 @@
<url>https://www.itophub.io</url> <url>https://www.itophub.io</url>
<route_landing>/my-instances/landing-from-remote</route_landing> <route_landing>/my-instances/landing-from-remote</route_landing>
<route_landing_stateless>/stateless-remote-itop/landing-from-remote-stateless</route_landing_stateless> <route_landing_stateless>/stateless-remote-itop/landing-from-remote-stateless</route_landing_stateless>
<route_fetch_unread_messages>/api/notifications</route_fetch_unread_messages> <route_fetch_unread_messages>/api/messages</route_fetch_unread_messages>
<route_mark_all_messages_as_read>/api/notifications/mark_all_as_read</route_mark_all_messages_as_read> <route_mark_all_messages_as_read>/api/messages/mark-all-as-read</route_mark_all_messages_as_read>
<route_view_all_messages>/api/notifications/view_all_messages</route_view_all_messages> <route_view_all_messages>/messages</route_view_all_messages>
<setup_url>../pages/exec.php?exec_module=itop-hub-connector&amp;exec_page=launch.php&amp;target=inform_after_setup</setup_url> <setup_url>../pages/exec.php?exec_module=itop-hub-connector&amp;exec_page=launch.php&amp;target=inform_after_setup</setup_url>
</parameters> </parameters>
</module_parameters> </module_parameters>

View File

@@ -50,7 +50,7 @@ class HubNewsroomProvider extends NewsroomProviderBase
public function GetViewAllURL() public function GetViewAllURL()
{ {
return $this->MakeURL('route_view_all_messages'); return $sBaseUrl = $this->oConfig->GetModuleSetting('itop-hub-connector', 'url').MetaModel::GetModuleSetting('itop-hub-connector', 'route_view_all_messages');
} }
/** /**
* {@inheritDoc} * {@inheritDoc}