Module: handlers_ai

Description

This is an example of how to document routes.

Function: sendImageToAIService

Send a post request to AI service with base64 image and runs the callback when results are available.

sendImageToAIService()
Arguments
  • sendImageToAIService() – response object.

  • sendImageToAIService() – base64 image clicked by the idea2life.

  • sendImageToAIService() – default filename generated by system (unix timestamp)

  • sendImageToAIService() – callback function (to be called when data from AI service is available)