1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 06:54:26 +02:00

Better handling of API server errors

This commit is contained in:
Toby Zerner
2015-05-26 11:43:20 +09:30
parent feb4676aa0
commit 5fc2f3aeee
5 changed files with 31 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ export default class Store {
endpoint += '/'+id
params = query
}
return m.request({
return app.request({
method: 'GET',
url: app.config['api_url']+'/'+endpoint,
data: params,