1
Fork 0

Added basic codebase

This commit is contained in:
Jake Howard 2015-12-17 18:21:19 +00:00
parent 400b8bc96b
commit 9625876e2a
3 changed files with 16 additions and 0 deletions

View file

@ -26,6 +26,7 @@
"eslint": "=1.10.3", "eslint": "=1.10.3",
"eslint-config": "git://github.com/dabapps/eslint-config.git", "eslint-config": "git://github.com/dabapps/eslint-config.git",
"eslint-plugin-react": "^3.11.3", "eslint-plugin-react": "^3.11.3",
"jest-cli": "^0.8.1",
"uglify-js": "=2.6.1" "uglify-js": "=2.6.1"
}, },
"dependencies": { "dependencies": {

10
src/api-requests.js Normal file
View 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');
},
};

View file

@ -0,0 +1,5 @@
import apiRequest from './api-requests';
export default function (ident, callback, args, kwargs) {
return apiRequest.post('/reverse/', {ident, args, kwargs});
};