Skip to content

Commit

Permalink
remove axios
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Mar 26, 2024
1 parent 55af09a commit eb3d0a5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 93 deletions.
91 changes: 0 additions & 91 deletions spx-gui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion spx-gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"test": "vitest"
},
"dependencies": {
"axios": "^1.6.5",
"file-saver": "^2.0.5",
"js-pkce": "^1.4.0",
"jszip": "^3.10.1",
Expand Down
2 changes: 1 addition & 1 deletion spx-gui/src/utils/casdoor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Sdk {
window.location.assign(this.pkce.authorizeUrl(additionalParams))
}

// TODO: move to axios service
// TODO: move to apis
public async getUserInfo(accessToken: string) {
return fetch(`${this.config.serverUrl.trim()}/api/userinfo`, {
method: 'GET',
Expand Down

0 comments on commit eb3d0a5

Please sign in to comment.