Created
May 14, 2020 23:13
-
-
Save sailfish009/a7f33378e0860a358fd69486f1dcb9bd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // vue.js get data from response | |
| .then(response => { | |
| response.data | |
| } | |
| # python response with json data | |
| def some_func(): | |
| response.content_type = 'application/json' | |
| rv = [{"id":1, "user": "testuser", "permissions": "test", "token": "abcdefg"}] | |
| return dict(data=rv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment