1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

API: Allow specifying item ID for any item

This commit is contained in:
Laurent Cozic
2019-02-06 22:36:39 +00:00
parent 0d6443c30a
commit 49f8d0c6d8
3 changed files with 32 additions and 12 deletions

View File

@@ -145,7 +145,7 @@ class ClipperServer {
const execRequest = async (request, body = '', files = []) => {
try {
const response = await this.api_.route(request.method, url.pathname, url.query, body, files);
writeResponse(200, response);
writeResponse(200, response ? response : '');
} catch (error) {
this.logger().error(error);
writeResponse(error.httpCode ? error.httpCode : 500, error.message);