43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
const BASE_URL = "http://localhost:8888"
|
|
|
|
const SIGNUP_URI = `${BASE_URL}/user/signup`
|
|
const LOGIN_URI = `${BASE_URL}/user/login`
|
|
const LOGOUT_URI = `${BASE_URL}/user/logout`
|
|
|
|
const GET_REGIONS = `${BASE_URL}/regions`;
|
|
const GET_REGENCIES = `${BASE_URL}/region/regencies`;
|
|
const GET_PROVINCES = `${BASE_URL}/region/provinces`;
|
|
|
|
const GET_CURRENT_USER_STATS = `${BASE_URL}/user/profile`;
|
|
|
|
const GET_LIST_LOCATIONS_URI = `${BASE_URL}/locations`;
|
|
const GET_LIST_TOP_LOCATIONS = `${BASE_URL}/locations/top-ratings`
|
|
const GET_LIST_RECENT_LOCATIONS_RATING_URI = `${BASE_URL}/locations/recent`
|
|
const GET_LOCATION_URI = `${BASE_URL}/location`;
|
|
const GET_LOCATION_TAGS_URI = `${BASE_URL}/location/tags`
|
|
const POST_CREATE_LOCATION = GET_LIST_LOCATIONS_URI;
|
|
|
|
const GET_IMAGES_BY_LOCATION_URI = `${BASE_URL}/images/location`
|
|
|
|
const POST_REVIEW_LOCATION_URI = `${BASE_URL}/review/location`
|
|
const GET_CURRENT_USER_REVIEW_LOCATION_URI = `${BASE_URL}/user/review/location`
|
|
|
|
export {
|
|
BASE_URL,
|
|
SIGNUP_URI,
|
|
LOGIN_URI,
|
|
LOGOUT_URI,
|
|
GET_REGIONS,
|
|
GET_PROVINCES,
|
|
GET_REGENCIES,
|
|
GET_CURRENT_USER_STATS,
|
|
GET_LIST_RECENT_LOCATIONS_RATING_URI,
|
|
GET_LIST_TOP_LOCATIONS,
|
|
GET_LIST_LOCATIONS_URI,
|
|
POST_CREATE_LOCATION,
|
|
GET_LOCATION_URI,
|
|
GET_LOCATION_TAGS_URI,
|
|
GET_IMAGES_BY_LOCATION_URI,
|
|
POST_REVIEW_LOCATION_URI,
|
|
GET_CURRENT_USER_REVIEW_LOCATION_URI,
|
|
} |