Move framework stuff into 'fx' folder

This commit is contained in:
SteveSandersonMS
2016-02-07 22:18:27 -08:00
parent 59b28ae5ee
commit 05905a42ab
16 changed files with 16 additions and 16 deletions

View File

@@ -0,0 +1,13 @@
import isomorphicFetch from 'isomorphic-fetch';
import { addTask } from './domain-tasks';
export function fetch(url: string): Promise<any> {
// TODO: Find some way to supply the base URL via domain context
var promise = isomorphicFetch('http://localhost:5000' + url, {
headers: {
Connection: 'keep-alive'
}
});
addTask(promise);
return promise;
}