add restful routes for galleries