A low-dimensional analogue of holographic baryons