Skip to content
Snippets Groups Projects
Select Git revision
  • 983c7844d39145d6655d72729feda8d13b3e37f1
  • master default protected
  • 69-resize-image-before-upload
  • 60-add-match-salamander-modal-to-edit-salamander
  • 50-fix-server-error-message
  • 48-fix-gradle
  • 31-camera-communicate-with-api-and-delete-from-cache-2
  • 20-changing-verification-step-in-profile-to-modal
  • 4-add-all-basic-views
  • 1-setup
10 results

APIkit.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    APIkit.js 473 B
    import axios from "axios";
    
    /**
     * An instance of axios which is used everytime a network request is needed. 
     * @baseURL where the request should be sent to. 
     * @timeout how long the system will try to perform the request. 
     * @headers what type of data is accepted. 
     * 
     * @return the instance. 
     */
    let APIKit = axios.create({
      baseURL: "http://192.168.10.176:5000",
      timeout: 60000,
      headers: { "Content-Type": "multipart/form-data" },
    });
    
    export default APIKit;