allow to overide locale method __() to all object

This commit is contained in:
Xuan Sang LE
2018-03-10 22:46:28 +01:00
parent 6367c321da
commit 702a83df6a
7 changed files with 24 additions and 16 deletions

View File

@ -65,7 +65,8 @@ self.OS.API.handler =
path = "#{_REST}/system/application"
auth: (c) ->
p = "#{_REST}/system/auth"
_API.post p, {}, c, () ->
_API.post p, {}, c, (e, s) ->
console.log e, s
alert __("Resource not found: {0}", p)
login: (d, c) ->
p = "#{_REST}/system/login"