diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-17 19:35:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-17 21:10:18 +0900 |
| commit | 95dd5f0c346d10c9a9497daf88cd199ce71c8122 (patch) | |
| tree | 6d3621b22cc44d7e93bc6a46b300479619d240d2 /backend/fortee | |
| parent | 48a70e06f54d81cdc6b0c22c2dcce8426b86decf (diff) | |
| download | iosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.gz iosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.zst iosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.zip | |
feat(backend): fetch user icon from fortee
Diffstat (limited to 'backend/fortee')
| -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 } |
