🐛 Fix: confused port number auto increasing when opening a new PicGo app

This commit is contained in:
Molunerfinn
2020-03-19 19:25:05 +08:00
parent f3575575ac
commit cd70a1a5cc
5 changed files with 47 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ import {
} from './utils'
import logger from '../utils/logger'
router.get('/upload', async ({
router.post('/upload', async ({
response,
list = []
} : {
@@ -66,4 +66,18 @@ router.get('/upload', async ({
}
})
router.post('/heartbeat', async ({
response
} : {
response: IHttpResponse,
}) => {
handleResponse({
response,
body: {
success: true,
result: 'alive'
}
})
})
export default router