let online = false;
export let baseUrl = online ? 'https://api.fast.liveplus.fun' : 'https://api.fast.dev.liveplus.fun';
export let imgUrl = online
    ? 'https://api.fast.liveplus.fun/static/image/'
    : 'https://api.fast.dev.liveplus.fun/static/image/';

//common
export const API_ADJUST_TIMES = `${baseUrl}/api/fast/adjust-times`
// export const API_WX_PUB_FOLLOWED = `${baseUrl}/api/fast/user/wx-pub-followed`
export const API_OAUTH_LOGIN = `${baseUrl}/api/user/login/oauth2`
export const API_LOGIN = `${baseUrl}/api/user/login/password`
export const API_REGISTER = `${baseUrl}/api/user/account`
export const API_LOGOUT = `${baseUrl}/api/user/logout`
export const API_CLEAR_USER = `${baseUrl}/api/user/account`
export const API_STATIC_RESOURCES = `${baseUrl}/api/static-resource-urls`
export const API_GLOBAL_CONFIGS = `${baseUrl}/api/system/global-configs`
export const API_USER_INFO = `${baseUrl}/api/user/info`
export const API_CLEAR_FAST = `${baseUrl}/api/clear/fasting`
export const API_CLEAR_SLEEP = `${baseUrl}/api/sleep/clear-my-data`
export const API_CLEAR_MIX = `${baseUrl}/api/clear-data/FAST_SLEEP`
export const API_CHECK_UNIQUE = `${baseUrl}/api/user/check-unique`
export const API_UPLOAD_SESSION = `${baseUrl}/api/thirdparty/wx/session`
export const API_DEL_SESSION = `${baseUrl}/api/thirdparty/wx/session`

//track time duration
export const API_FAST_PLANS = `${baseUrl}/api/fast/plans`
export const API_FAST_CHECKS = `${baseUrl}/api/fast/checks`
export const API_FAST_CLOCKS = `${baseUrl}/api/fast/clocks`
export const API_FAST_CHECK_ABANDONED = `${baseUrl}/api/fast/check-abandoned`
export const API_FAST_RECORDS = `${baseUrl}/api/fast/records`
export const API_FAST_SCHEDULES = `${baseUrl}/api/fast/schedules`
export const API_FAST_CALENDARS = `${baseUrl}/api/fast/calendars/`


//track something
export const API_CLOCK_RECORDS = `${baseUrl}/api/clock/records`
export const API_UPLOAD_STEPS = `${baseUrl}/api/thirdparty/wx/steps`
export const API_ACTIVITY_CARDS = `${baseUrl}/api/activity/cards`
export const API_ACTIVITY_RECORDS = `${baseUrl}/api/activity/records`
export const API_METRIC_CARDS = `${baseUrl}/api/metric/cards`
export const API_METRIC_RECORDS = `${baseUrl}/api/metric/records`
export const API_METRIC_GROUPS = `${baseUrl}/api/metric/groups`
export const API_METRIC_FOLLOWS = `${baseUrl}/api/metric/follows`

//food
export const API_FOOD = `${baseUrl}/api/food/journals`
export const API_FOOD_TAGS = `${baseUrl}/api/system/tags`

//permissions
export const API_WX_PUB_FOLLOWED = `${baseUrl}/api/fast/user/wx-pub-followed`
