7 Commits (d89477cad00cc0816661d5fe2ff549d18479cb06)

Author SHA1 Message Date
Julian Lam 20bb9c7ec8 fix: csrf token only on non-GET routes 5 years ago
Barış Soner Uşaklı 3673accdb8 refactor: api module
only return promise if callback is undefined
dont append baseUrl if url already starts with api
correctly handle writeapi readapi response for data/error
remove unused onError
dont append empty ? to url for get routes
5 years ago
Julian Lam a784d10fff refactor: api module returns promise, error-first cb if cb passed in
no more separate onSuccess onError callbacks

/cc @baris
5 years ago
Julian Lam 1e07886f30 feat: require csrf token if not using bearer token 5 years ago
Julian Lam 3ea1aa4780 refactor(writeapi): update route prefix to api/v3, default error option 5 years ago
Julian Lam a905d7f022 refactor: rewrite modules/api.js in AMD style 5 years ago
Julian Lam d044c3223e feat(writeapi): abstracted ajax calls out to new api module 5 years ago