Skip to content

Commit

Permalink
migrate Rest.Auth uris in api.host package (#11)
Browse files Browse the repository at this point in the history
* add Auth.Check uri in api host

* change Rest.Auth uris in api host

use subfix /token instead of /cli
  • Loading branch information
98sean98 authored Sep 12, 2023
1 parent 9de9b73 commit 846e233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type rest struct {

type auth struct {
Login string
Check string
}

const base = "https://api.deploif.ai"
Expand All @@ -23,7 +24,8 @@ var Endpoint = endpoint{
Base: base,

Auth: auth{
Login: "/auth/login/cli",
Login: "/auth/login/token",
Check: "/auth/check/token",
},
},
}

0 comments on commit 846e233

Please sign in to comment.