Added redirect to chatserver example.

This commit is contained in:
Nathan Osman
2015-07-14 10:02:44 -07:00
parent ae88219c3f
commit 76c517b03f

View File

@@ -64,6 +64,7 @@ int main(int argc, char * argv[])
// Build the hierarchy of handlers
QFilesystemHandler handler(":/static");
handler.addRedirect(QRegExp("^$"), "/index.html");
ApiHandler apiHandler;
handler.addSubHandler(QRegExp("api/"), &apiHandler);