Hiyve Components - v1.0.0
    Preparing search index...

    Function mountHiyveRoutes

    • Mount all Hiyve routes on an Express-compatible router.

      Parameters

      Returns any

      The router (for chaining)

      Registers the standard Hiyve server endpoints:

      • POST /generate-room-token
      • POST /generate-cloud-token
      • POST /generate-note
      • POST /create-join-token
      • GET /health
      • ALL /hiyve/identity/* — Identity proxy (forwards to Hiyve Cloud)
      import express from 'express';
      import { mountHiyveRoutes, loadHiyveConfig } from '@hiyve/admin';

      const app = express();
      app.use(express.json());

      const apiRouter = express.Router();
      mountHiyveRoutes(apiRouter, loadHiyveConfig());
      app.use('/api', apiRouter);