Client Functions

This page will explain all exported functions from the SonoranCAD Core that can be used on the client side

getApiMode

Determines the API mode based on the configuration. This tells you which API URL is being used by the CAD for API Calls

exports.sonorancad.getApiMode()
Type
Description

number

  • 1 for production mode (or if no mode is set in the configuration).

  • 0 for development mode.

Last updated