audio_portal.h 651 B

123456789101112131415161718
  1. #pragma once
  2. #include <WebServer.h>
  3. // The /audio page and its API.
  4. //
  5. // Split out of portal.cpp rather than added to it: the settings page and the
  6. // recorder have nothing to say to each other, and portal.cpp is already one
  7. // long self-contained document. The same rule still applies here — the page is
  8. // one file with no CDN and no external fonts, because in setup mode the phone
  9. // loading it has no route to the internet.
  10. namespace audio_portal {
  11. // Adds the audio routes to the portal's server. Called from
  12. // portal's registerHandlers() so both modes get the page.
  13. void registerHandlers(WebServer &server);
  14. } // namespace audio_portal