mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Save to disk when config change
This commit is contained in:
parent
224708e451
commit
22f9effede
@ -108,6 +108,8 @@ class ServerHandler:
|
||||
201: "Writed"
|
||||
})
|
||||
def write_settings(request, response):
|
||||
Controller.instance().settings = request.json
|
||||
response.json(Controller.instance().settings)
|
||||
controller = Controller.instance()
|
||||
controller.settings = request.json
|
||||
controller.save()
|
||||
response.json(controller.settings)
|
||||
response.set_status(201)
|
||||
|
Loading…
Reference in New Issue
Block a user