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:
- 11:9366140ebe5f
- Parent:
- 10:372c882b5533
- Child:
- 12:72e0c404017a
--- a/Services/Network/RestApiServer/RestServer.cpp Sun Mar 02 18:15:47 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#include "RestServer.h"
-
-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("/"+sourceFileSystemName, "/sources");
- FSHandler::mount("/"+logsFileSystemName, "/logs");
- webServer->addHandler<FSHandler>("/sources");
- webServer->addHandler<FSHandler>("/logs");
-}
-
-RestServer::~RestServer() {
- delete webServer;
-}
-
-void RestServer::bind() {
- webServer->bind(80);
-}
\ No newline at end of file
