Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
Diff: Services/Network/RestApiServer/RestServer.cpp
- Revision:
- 8:3655e9a98f28
- Parent:
- 6:b2c4687b421d
--- a/Services/Network/RestApiServer/RestServer.cpp Sat Feb 08 17:33:41 2014 +0000
+++ b/Services/Network/RestApiServer/RestServer.cpp Sun Mar 02 12:35:42 2014 +0000
@@ -3,11 +3,14 @@
RestServer::RestServer(FileSystemLike* aAppSourceFileSystem, FileSystemLike* aLogsFileSystem) {
appSourceFileSystem = aAppSourceFileSystem;
logsFileSystem = aLogsFileSystem;
-
+
+ string sourceFileSystemName(appSourceFileSystem->name());
+ string logsFileSystemName(logsFileSystem->name());
+
webServer = new HTTPServer();
webServer->addHandler<SimpleHandler>("/testService");
- FSHandler::mount("/local", "/sources");
- FSHandler::mount("/msc", "/logs");
+ FSHandler::mount("/"+sourceFileSystemName, "/sources");
+ FSHandler::mount("/"+logsFileSystemName, "/logs");
webServer->addHandler<FSHandler>("/sources");
webServer->addHandler<FSHandler>("/logs");
}
