|
MythTV master
|
#include <libmythbase/http/mythhttprewrite.h>
Static Public Member Functions | |
| static HTTPResponse | RewriteFile (const HTTPRequest2 &Request, const QString &File) |
| A convenience method to seemlessly redirect requests for files to a context specific file. More... | |
| static HTTPResponse | RewriteToSPA (const HTTPRequest2 &Request, const QString &File) |
| A convenience method to seemlessly redirect requests to a Single Page web app (SPA) More... | |
Definition at line 7 of file mythhttprewrite.h.
|
static |
A convenience method to seemlessly redirect requests for files to a context specific file.
e.g. we want requests for /main.js to be served from /apps/backend/main.js
Definition at line 22 of file mythhttprewrite.cpp.
Referenced by run_setup_webserver().
|
static |
A convenience method to seemlessly redirect requests to a Single Page web app (SPA)
e.g. we want all requests not handled by API or static methods to be sent into the web app
Also redirects requests for /chunk-ABCDEF.js to apps/backend/chunk-ABCDEF.js where ABCDEF is a hash code generated by the Angular compiler and apps/backend is deftived from File.
Definition at line 54 of file mythhttprewrite.cpp.
Referenced by main(), run_backend(), and run_setup_webserver().