mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-24 09:49:46 +02:00
fix handle
This commit is contained in:
@ -72,17 +72,20 @@ self.OS.API.handler =
|
|||||||
_API.post p, d, c, () ->
|
_API.post p, d, c, () ->
|
||||||
alert "Resource not found: #{p}"
|
alert "Resource not found: #{p}"
|
||||||
logout: () ->
|
logout: () ->
|
||||||
p = "#{_REST}/system/logout"
|
_API.handler.setting () ->
|
||||||
_API.post p, {}, (d) ->
|
p = "#{_REST}/system/logout"
|
||||||
|
_API.post p, {}, (d) ->
|
||||||
_OS.boot()
|
_OS.boot()
|
||||||
, () ->
|
, () ->
|
||||||
alert "Resource not found #{p}"
|
alert "Resource not found #{p}"
|
||||||
setting: () ->
|
setting: (f) ->
|
||||||
p = "#{_REST}/system/settings"
|
p = "#{_REST}/system/settings"
|
||||||
_API.post p, _OS.setting, (d) ->
|
_API.post p, _OS.setting, (d) ->
|
||||||
_courrier.oserror "Cannot save system setting", d.error if d.error
|
_courrier.oserror "Cannot save system setting", d.error if d.error
|
||||||
|
f() if f
|
||||||
, (e, s) ->
|
, (e, s) ->
|
||||||
_courrier.osfail "Fail to make request: #{p}", e, s
|
_courrier.osfail "Fail to make request: #{p}", e, s
|
||||||
|
f() if f
|
||||||
|
|
||||||
dbquery: (cmd, d, c) ->
|
dbquery: (cmd, d, c) ->
|
||||||
path = "#{_REST}/db/#{cmd}"
|
path = "#{_REST}/db/#{cmd}"
|
||||||
|
Reference in New Issue
Block a user