Skip to content

Commit

Permalink
Merge pull request #21 from codyduong/fix
Browse files Browse the repository at this point in the history
Fixed some url pathing issues with previous PR's
  • Loading branch information
Dunador authored May 3, 2021
2 parents 6e0ad54 + ead9c5d commit 50bec7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "spacetraders-sdk",
"repository": "https://github.com/notVitaliy/spacetraders-io.git",
"version": "1.8.1",
"version": "1.8.2",
"main": "./dist/index.js",
"module": "./dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ export class SpaceTraders {
}

getLocationShips(location: string) {
const url = this.makeUserPath(`/game/locations/${location}/ships`)
const url = `/game/locations/${location}/ships`

return this.makeAuthRequest<LocationShipsResponse>(url, 'get')
}

private async createUser() {
const path = this.makeUserPath(`/token`)
const path = this.makeUserPath(`token`)
const url = `${BASE_URL}${path}`

const resp = await axios.post<TokenResponse>(url)
Expand Down

0 comments on commit 50bec7e

Please sign in to comment.