OpenVeo Publish server

API Docs for: 8.0.0
Show:

StatisticsController

Extends Controller
Module: controllers

Summary

Defines a controller to handle actions relative to statistics' routes.

Constructor

StatisticsController

Syntax

StatisticsController

()

Summary

Item Index

Methods

statisticsAction

Syntax

statisticsAction

(
  • request
  • response
  • next
)
async

Summary

Route statistics.

Check if stats ar available before executing the stat function.

Parameters:

  • request Request

    ExpressJS HTTP Request

    • params Object

      Request's parameters

      • entity String
        The entity type to work on ("video")
      • type String
        The statistic type to work on ("views")
      • id String
        The entity id
    • [body] Object optional

      Required for entity "video" and type "views"

      • count String
        Number to add to existing count (or to initialize)
  • response Response

    ExpressJS HTTP Response

  • next Function

    Function to defer execution to the next registered middleware