|
|
|
@ -166,7 +166,7 @@ public class StockModule extends BaseHandler implements StockService { |
|
|
|
case null, default -> throw unprocessable("Unprocessable owner type: {0}",owner.type()); |
|
|
|
case null, default -> throw unprocessable("Unprocessable owner type: {0}",owner.type()); |
|
|
|
}; |
|
|
|
}; |
|
|
|
var pathToLocation = stockDb.pathToLocation(location); |
|
|
|
var pathToLocation = stockDb.pathToLocation(location); |
|
|
|
return sendContent(ex,Map.of(ITEMS,items,USERS,userIds,PATH,pathToLocation)); |
|
|
|
return sendContent(ex,Map.of(ITEMS,items,USERS,userIds,PATH,pathToLocation,LOCATION,location.resolve().toMap())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean getLocations(Path path, UmbrellaUser user, HttpExchange ex) throws IOException { |
|
|
|
private boolean getLocations(Path path, UmbrellaUser user, HttpExchange ex) throws IOException { |
|
|
|
|