This commit is contained in:
Chunting Gu
2020-02-23 12:31:20 +08:00
parent 4ddf2d5696
commit 4386c46397
5 changed files with 8 additions and 24 deletions
+1 -10
View File
@@ -6,15 +6,6 @@
#include "views.h"
// Memory leak detection with VLD.
#if (defined(_WIN32) || defined(_WIN64))
#if defined(_DEBUG) && defined(WEBCC_ENABLE_VLD)
#pragma message ("< include vld.h >")
#include "vld/vld.h"
#pragma comment(lib, "vld")
#endif
#endif
int main(int argc, char* argv[]) {
if (argc < 3) {
std::cout << "usage: book_server <port> <upload_dir>" << std::endl;
@@ -43,7 +34,7 @@ int main(int argc, char* argv[]) {
std::cout << "Book photos will be saved to: " << photo_dir << std::endl;
try {
webcc::Server server(port); // No doc root
webcc::Server server{ port }; // No doc root
server.Route("/books",
std::make_shared<BookListView>(),