Skip to main content

Backend API for assets in Polotno

How to replace iconscout API with our endpoint?#

import { setAPI } from 'polotno/config';
// replace URL to get list of iconscout icons (used in elements side panel)// you may need to have your own backend for thatsetAPI('iconscoutList', ({ query, page = 1 }) => {  return `https://example.com/iconscout?query=${query}&page=${page}`;});
// replace URL to download selected icons from iconscout API.setAPI('iconscoutDownload', (id) => {  return `https://example.com/download-iconscout?uuid=${id}`;});