forked from p15670423/monkey
Island: Rename VersionUpdate to Version
This commit is contained in:
parent
3dbc892cb9
commit
56c325f08f
|
@ -47,7 +47,7 @@ from monkey_island.cc.resources.root import Root
|
||||||
from monkey_island.cc.resources.security_report import SecurityReport
|
from monkey_island.cc.resources.security_report import SecurityReport
|
||||||
from monkey_island.cc.resources.telemetry import Telemetry
|
from monkey_island.cc.resources.telemetry import Telemetry
|
||||||
from monkey_island.cc.resources.telemetry_feed import TelemetryFeed
|
from monkey_island.cc.resources.telemetry_feed import TelemetryFeed
|
||||||
from monkey_island.cc.resources.version_update import VersionUpdate
|
from monkey_island.cc.resources.version import Version
|
||||||
from monkey_island.cc.resources.zero_trust.finding_event import ZeroTrustFindingEvent
|
from monkey_island.cc.resources.zero_trust.finding_event import ZeroTrustFindingEvent
|
||||||
from monkey_island.cc.resources.zero_trust.zero_trust_report import ZeroTrustReport
|
from monkey_island.cc.resources.zero_trust.zero_trust_report import ZeroTrustReport
|
||||||
from monkey_island.cc.server_utils.consts import MONKEY_ISLAND_ABS_PATH
|
from monkey_island.cc.server_utils.consts import MONKEY_ISLAND_ABS_PATH
|
||||||
|
@ -185,7 +185,7 @@ def init_restful_endpoints(api: FlaskDIWrapper):
|
||||||
|
|
||||||
api.add_resource(PropagationCredentials)
|
api.add_resource(PropagationCredentials)
|
||||||
api.add_resource(RemoteRun)
|
api.add_resource(RemoteRun)
|
||||||
api.add_resource(VersionUpdate)
|
api.add_resource(Version)
|
||||||
api.add_resource(StopAgentCheck)
|
api.add_resource(StopAgentCheck)
|
||||||
api.add_resource(StopAllAgents)
|
api.add_resource(StopAllAgents)
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,11 @@ from monkey_island.cc.services.version_update import VersionUpdateService
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class VersionUpdate(AbstractResource):
|
class Version(AbstractResource):
|
||||||
urls = ["/api/island/version"]
|
urls = ["/api/island/version"]
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(VersionUpdate, self).__init__()
|
super(Version, self).__init__()
|
||||||
|
|
||||||
# We don't secure this since it doesn't give out any private info and we want UI to know version
|
# We don't secure this since it doesn't give out any private info and we want UI to know version
|
||||||
# even when not authenticated
|
# even when not authenticated
|
Loading…
Reference in New Issue