mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-16 14:28:12 +00:00
Alternative local server shutdown (mostly intended for Windows).
This commit is contained in:
@ -42,6 +42,16 @@ class ProjectManager:
|
||||
cls._instance = cls()
|
||||
return cls._instance
|
||||
|
||||
@property
|
||||
def projects(self):
|
||||
"""
|
||||
Returns all projects.
|
||||
|
||||
:returns: Project instances
|
||||
"""
|
||||
|
||||
return self._projects.values()
|
||||
|
||||
def get_project(self, project_id):
|
||||
"""
|
||||
Returns a Project instance.
|
||||
|
Reference in New Issue
Block a user