MSP-6038 update repo host path for methods

This commit is contained in:
riabovvo committed 2025-08-11 11:47:42 +03:00
1 parent fb882e5c5c
commit 996abfda16
1 file changed
+2 -2
+2 -2
View File
@@ -25,7 +25,7 @@ func NewSudir(httpCli *httpcli.Client, cfg *conf.SudirAuth) Sudir {
}
func (s Sudir) GetToken(ctx context.Context, authCode string) (*entity.SudirTokenResponse, error) {
urlString, err := url.JoinPath(s.cfg.Host, "/blitz/oauth/te")
urlString, err := url.JoinPath(s.cfg.Host, "/oauth/te")
if err != nil {
return nil, errors.WithMessage(err, "build url")
}
@@ -56,7 +56,7 @@ func (s Sudir) GetToken(ctx context.Context, authCode string) (*entity.SudirToke
}
func (s Sudir) GetUser(ctx context.Context, accessToken string) (*entity.SudirUserResponse, error) {
urlString, err := url.JoinPath(s.cfg.Host, "/blitz/oauth/me")
urlString, err := url.JoinPath(s.cfg.Host, "/oauth/me")
if err != nil {
return nil, errors.WithMessage(err, "build url")
}