Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3030

Create ajax wrapper for FauxtonAPI

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Fauxton
    • None

    Description

      Currently we depend on $.ajax. We should move away from that and instead use either the fetch api or something like superagent.

      What we need is a ajax wrapper for the FauxtonAPI. It would be a module in here https://github.com/apache/couchdb-fauxton/tree/master/app/core

      Then we could use it like this:

      FauxtonAPI.post(url, data);

      The one requirement is that is must work for CORS as well.

      [EDIT by robertkowalski]: maybe there is a super thin wrapper around the fetch api?

      Attachments

        Activity

          People

            timmak Tim Pinington
            garren Garren Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: