forked from mirror/misskey
fix port
This commit is contained in:
parent
8119e4a467
commit
d87cf2570d
@ -1,5 +1,5 @@
|
|||||||
url: 'http://misskey.local'
|
url: 'http://misskey.local'
|
||||||
port: 80
|
port: 8080
|
||||||
db:
|
db:
|
||||||
host: localhost
|
host: localhost
|
||||||
port: 5432
|
port: 5432
|
||||||
|
@ -18,7 +18,7 @@ export const request = async (endpoint: string, params: any, me?: any): Promise<
|
|||||||
} : {};
|
} : {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await fetch('http://localhost:80/api' + endpoint, {
|
const res = await fetch('http://localhost:8080/api' + endpoint, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(Object.assign(auth, params))
|
body: JSON.stringify(Object.assign(auth, params))
|
||||||
});
|
});
|
||||||
@ -66,7 +66,7 @@ export const react = async (user: any, note: any, reaction: string): Promise<any
|
|||||||
|
|
||||||
export const uploadFile = (user: any, path?: string): Promise<any> => new Promise((ok, rej) => {
|
export const uploadFile = (user: any, path?: string): Promise<any> => new Promise((ok, rej) => {
|
||||||
req.post({
|
req.post({
|
||||||
url: 'http://localhost:80/api/drive/files/create',
|
url: 'http://localhost:8080/api/drive/files/create',
|
||||||
formData: {
|
formData: {
|
||||||
i: user.token,
|
i: user.token,
|
||||||
file: fs.createReadStream(path || __dirname + '/resources/Lenna.png')
|
file: fs.createReadStream(path || __dirname + '/resources/Lenna.png')
|
||||||
|
Loading…
Reference in New Issue
Block a user