Skip to content

Commit

Permalink
fix space and endpoint stop (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhendi authored and hiveer committed Sep 18, 2024
1 parent 0476da3 commit 704c871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
},
async stopSpace() {
stopUrl = `/spaces/${this.path}/stop`
const stopUrl = `/spaces/${this.path}/stop`
const { response, error } = await useFetchApi(stopUrl).post().json()
if (response.value.ok) {
Expand All @@ -511,7 +511,7 @@
},
async restartSpace() {
restartUrl = `/spaces/${this.path}/run`
const restartUrl = `/spaces/${this.path}/run`
const { response, error } = await useFetchApi(restartUrl).post().json()
if (response.value.ok) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/endpoints/EndpointSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
})
const stopEndpoint = async () => {
stopUrl = `/models/${props.modelId}/run/${props.endpointId}/stop`
const stopUrl = `/models/${props.modelId}/run/${props.endpointId}/stop`
const { response, error } = await useFetchApi(stopUrl).put().json()
if (!error.value) {
Expand Down

0 comments on commit 704c871

Please sign in to comment.