Server part of gallery application