-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// import { BarType } from '@lib/types'; | ||
import RestAPI from './restapi'; | ||
|
||
class CurationAPI { | ||
/** | ||
* 술집 목록 조회 | ||
* @param latitude | ||
* @param longitude | ||
*/ | ||
public async getCurationList(data) { | ||
try { | ||
const { latitude, longitude } = data; | ||
const result = await RestAPI.get(`/api/curation?regionId={regionId}&offset={offset}&limit={limit}`); | ||
return result.data; | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
} | ||
} | ||
|
||
export default new CurationAPI(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { default as user } from './users'; | ||
import { default as bar } from './bar'; | ||
import { default as curation } from './curation'; | ||
|
||
const apis = { | ||
user, | ||
bar, | ||
curation, | ||
}; | ||
|
||
export default apis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters