Peter Jaszkowiak
62869bae3d
chore: eslint function-paren-newline
2021-02-08 18:06:44 -05:00
Julian Lam
501441b736
feat: add .delete() method to api module
2021-02-02 10:27:34 -05:00
Julian Lam
d263192271
feat: group exists API call in write api
2020-11-06 12:18:42 -05:00
Julian Lam
1446cec77f
feat: user exist route in write api
2020-11-06 11:55:04 -05:00
Barış Soner Uşaklı
d9a16855d0
refactor: posts api
2020-10-17 22:59:12 -04:00
Julian Lam
20bb9c7ec8
fix: csrf token only on non-GET routes
2020-10-14 14:02:03 -04:00
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
2020-10-14 11:05:50 -04:00
Julian Lam
a784d10fff
refactor: api module returns promise, error-first cb if cb passed in
...
no more separate onSuccess onError callbacks
/cc @baris
2020-10-14 10:02:02 -04:00
Julian Lam
1e07886f30
feat: require csrf token if not using bearer token
2020-10-13 16:58:44 -04:00
Julian Lam
3ea1aa4780
refactor(writeapi): update route prefix to api/v3, default error option
2020-10-08 15:33:10 -04:00
Julian Lam
a905d7f022
refactor: rewrite modules/api.js in AMD style
2020-10-08 15:33:10 -04:00
Julian Lam
d044c3223e
feat(writeapi): abstracted ajax calls out to new api module
2020-10-08 15:33:10 -04:00