Skip to content

Commit

Permalink
Implement mockup list request for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fzadrazil authored and raitisbe committed Apr 26, 2021
1 parent b994ff4 commit 0af6e58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/hslayers-server/src/share.js
Expand Up @@ -31,6 +31,10 @@ share.get('/', context => {
getThumbnail(context.query.id, context);
break;

case 'list': // only for backward compatilibity, should not be used anymore
formatResponseJson({ "success": true, "results": [], "error": "no data" }, context, 200);
break;

default:
formatResponseJson({ success: false, error: "Request not specified" }, context, 400);
break;
Expand Down

0 comments on commit 0af6e58

Please sign in to comment.