Menu
NodeCG LogoNodeCG LogoNodeCGv1.7.0DocsBlog
GitHub
๐ŸŒœ
๐ŸŒž
NodeCG LogoNodeCG LogoNodeCG
  • v1.7.0
  • Docs
  • Blog
  • GitHub
  • Quick Start
    • NodeCG
    • Installing
    • Creating Bundles
  • Guides
    • Concepts and Terminology
    • Manifest
    • Configuration
    • Node Dependencies
    • Bundle Configuration
    • Assets
    • Sounds
    • Replicant Validation
    • Performance
    • Making Dashboard Dialogs
    • Portable NodeCG
  • Advanced
    • Mount folders as endpoints
    • Security & Authentication
    • Testing Graphics
    • Custom Routes
    • Sentry.io
  • Using Frameworks
    • Bundlers
    • TypeScript
    • vue.js
    • p5.js
  • Migrating
    • 0.7 โ†’ 0.8
    • 0.8 โ†’ 0.9
    • 0.9 โ†’ 1.0
  • API Reference
    • NodeCG
    • Replicant
    • readReplicant
    • waitForReplicants
    • sendMessage
    • sendMessageToBundle
    • listenFor
    • unlisten
    • log()
    • Router
    • mount()
    • getDialog
    • getDialogDocument
    • getSocketIOServer()
    • findCue
    • playSound
    • stopAllSounds()
    • stopSound

mount()

Extension Only

This can only be used in code which runs on the server.

mount()

Mounts express middleware to the main server express app. See the express docs for usage.

This is generally used in tandem Router. See Custom Routes for a full guide.

Edit this page
Last updated on 1/9/2021 by Ewan Lyon
Previous
ยซ Router
Next
getDialog ยป

Docs

  • What is NodeCG
  • Quick Start

Community

  • Discord

Social

  • Blog
  • GitHub
  • Twitter
Copyright (c) 2020 Alex Van Camp, Matthew McNamara, and contributors