Skip to content

Commit

Permalink
refactor: Follow to FollowInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ienrum committed Jul 6, 2024
1 parent d71f64b commit f2238da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apis/follow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {

import { api } from './core';

export interface Follow {
export interface FollowInfo {
userId: number;
email: string;
nickname: string;
Expand All @@ -25,13 +25,13 @@ export interface Follow {
}

const getFollowersByMe = () => {
return api.get<Follow[]>({
return api.get<FollowInfo[]>({
url: '/followers',
});
};

const getFolloweesByMe = () => {
return api.get<Follow[]>({
return api.get<FollowInfo[]>({
url: 'followees',
});
};
Expand Down

0 comments on commit f2238da

Please sign in to comment.