diff options
Diffstat (limited to 'backend/fortee/fortee.go')
| -rw-r--r-- | backend/fortee/fortee.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/fortee/fortee.go b/backend/fortee/fortee.go index 79ba065..cfe4eff 100644 --- a/backend/fortee/fortee.go +++ b/backend/fortee/fortee.go @@ -7,7 +7,7 @@ import ( ) const ( - apiEndpoint = "https://fortee.jp" + Endpoint = "https://fortee.jp" ) var ( @@ -16,7 +16,7 @@ var ( ) func Login(ctx context.Context, username string, password string) (string, error) { - client, err := NewClientWithResponses(apiEndpoint, WithRequestEditorFn(addAcceptHeader)) + client, err := NewClientWithResponses(Endpoint, WithRequestEditorFn(addAcceptHeader)) if err != nil { return "", err } @@ -41,7 +41,7 @@ func Login(ctx context.Context, username string, password string) (string, error } func GetUserAvatarURL(ctx context.Context, username string) (string, error) { - client, err := NewClientWithResponses(apiEndpoint, WithRequestEditorFn(addAcceptHeader)) + client, err := NewClientWithResponses(Endpoint, WithRequestEditorFn(addAcceptHeader)) if err != nil { return "", err } |
