From fbc042d2d45841904e06e4a09a3167eb3ceb94b0 Mon Sep 17 00:00:00 2001 From: Robin Riclet Date: Wed, 17 Mar 2021 16:06:28 +0100 Subject: [PATCH] #1843 fixed disk monitoring route --- ScalliGraph | 2 +- thehive/app/org/thp/thehive/controllers/v1/MonitoringCtrl.scala | 2 +- thehive/app/org/thp/thehive/controllers/v1/Router.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ScalliGraph b/ScalliGraph index 0657450b06..b403c2c2db 160000 --- a/ScalliGraph +++ b/ScalliGraph @@ -1 +1 @@ -Subproject commit 0657450b06a9b35b1bfa3a7e8ed89c1246140637 +Subproject commit b403c2c2db7e163550022283512c1f6d0c9fe91a diff --git a/thehive/app/org/thp/thehive/controllers/v1/MonitoringCtrl.scala b/thehive/app/org/thp/thehive/controllers/v1/MonitoringCtrl.scala index f4e210599c..a6dc213d67 100644 --- a/thehive/app/org/thp/thehive/controllers/v1/MonitoringCtrl.scala +++ b/thehive/app/org/thp/thehive/controllers/v1/MonitoringCtrl.scala @@ -26,7 +26,7 @@ class MonitoringCtrl @Inject() ( val diskLocations: ConfigItem[Seq[PartitionConfig], Seq[PartitionConfig]] = appConfig.item[Seq[PartitionConfig]]("monitor.disk", "disk locations to monitor") - def monitorDiskUsage: Action[AnyContent] = + def diskUsage: Action[AnyContent] = entrypoint("monitor disk usage") .authPermittedTransaction(db, Permissions.managePlatform)(implicit request => implicit graph => diff --git a/thehive/app/org/thp/thehive/controllers/v1/Router.scala b/thehive/app/org/thp/thehive/controllers/v1/Router.scala index 7c42c78230..652fbdd85d 100644 --- a/thehive/app/org/thp/thehive/controllers/v1/Router.scala +++ b/thehive/app/org/thp/thehive/controllers/v1/Router.scala @@ -179,6 +179,6 @@ class Router @Inject() ( case POST(p"/observable/type") => observableTypeCtrl.create case DELETE(p"/observable/type/$idOrName") => observableTypeCtrl.delete(idOrName) - case GET(p"monitor/disk") => monitoringCtrl.monitorDiskUsage + case GET(p"/monitor/disk") => monitoringCtrl.diskUsage } }