forked from misterGF/CoPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request misterGF#21 from euvl/master
Big update by @euvl! Great code examples in this PR. Thanks for helping keep CoPilot up to date. 👍👍👍
- Loading branch information
Showing
28 changed files
with
734 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import axios from 'axios' | ||
import config from '../config' | ||
|
||
export default { | ||
request (method, uri, data = null) { | ||
if (!method) { | ||
console.error('API function call requires method argument') | ||
return | ||
} | ||
|
||
if (!uri) { | ||
console.error('API function call requires uri argument') | ||
return | ||
} | ||
|
||
var url = config.serverURI + uri | ||
return axios({ method, url, data }) | ||
} | ||
} |
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.