mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +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"
|
201: "Writed"
|
||||||
})
|
})
|
||||||
def write_settings(request, response):
|
def write_settings(request, response):
|
||||||
Controller.instance().settings = request.json
|
controller = Controller.instance()
|
||||||
response.json(Controller.instance().settings)
|
controller.settings = request.json
|
||||||
|
controller.save()
|
||||||
|
response.json(controller.settings)
|
||||||
response.set_status(201)
|
response.set_status(201)
|
||||||
|
Loading…
Reference in New Issue
Block a user