src/state/REPLState.js
/**
   * Forks a configuration given a unique identifier
   * @returns {Promise<Object>} Blob representing the new fork
   */
Forks a configuration given a unique identifier
@returns {Promise} Blob representing the new fork
Forks a configuration given a unique identifier @returns { Promise } Blob representing the new fork
async Fork(ID) {
    const url = baseURL + `/api/v1/blobs/fork/${ID}`;
    try {
      const resp = await fetch(url, {
        method: "POST",
        headers: {
          Accept: "application/json",
          "Content-Type": "application/json",
        },
      });
      return resp.json();
    } catch (err) {
      console.error(err);
      return err;
    }
  }
async Fork ( ID ) { const url = baseURL + ` ${ ID } ` ; try { const resp = await fetch ( url , { method : "POST" , headers : { Accept : "application/json" , "Content-Type" : "application/json" , } , } ) ; return resp . json ( ) ; } catch ( err ) { console . error ( err ) ; return err ; } }
Forks a configuration given a unique identifier
 @returns {Promise<Object>} Blob representing the new fork
Forks a configuration given a unique identifier @returns { Promise<Object > } Blob representing the new fork