Add /preview API on server side