mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
行動データ, contact form, default articleに英語文追加, Intro fix
This commit is contained in:
10
lib/api.js
10
lib/api.js
@@ -1,9 +1,12 @@
|
||||
import superagent from 'superagent'
|
||||
import superagentPromise from 'superagent-promise'
|
||||
import { API_URL } from '../config'
|
||||
import auth from 'boost/auth'
|
||||
|
||||
const request = superagentPromise(superagent, Promise)
|
||||
export const API_URL = 'http://boost-api4.elasticbeanstalk.com/'
|
||||
// export const WEB_URL = 'http://b00st.io/'
|
||||
export const WEB_URL = 'http://localhost:3333/'
|
||||
|
||||
export const request = superagentPromise(superagent, Promise)
|
||||
|
||||
export function login (input) {
|
||||
return request
|
||||
@@ -163,6 +166,9 @@ export function sendEmail (input) {
|
||||
}
|
||||
|
||||
export default {
|
||||
API_URL,
|
||||
WEB_URL,
|
||||
request,
|
||||
login,
|
||||
signup,
|
||||
updateUserInfo,
|
||||
|
||||
Reference in New Issue
Block a user