Added basic codebase
This commit is contained in:
parent
400b8bc96b
commit
9625876e2a
3 changed files with 16 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
"eslint": "=1.10.3",
|
||||
"eslint-config": "git://github.com/dabapps/eslint-config.git",
|
||||
"eslint-plugin-react": "^3.11.3",
|
||||
"jest-cli": "^0.8.1",
|
||||
"uglify-js": "=2.6.1"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
10
src/api-requests.js
Normal file
10
src/api-requests.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import * as request from 'superagent';
|
||||
|
||||
export default {
|
||||
post: function (url, params) {
|
||||
return request
|
||||
.post(url)
|
||||
.send(params)
|
||||
.set('Accept', 'application/json');
|
||||
},
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import apiRequest from './api-requests';
|
||||
|
||||
export default function (ident, callback, args, kwargs) {
|
||||
return apiRequest.post('/reverse/', {ident, args, kwargs});
|
||||
};
|
Reference in a new issue