File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ else ()
65
65
target_compile_options (example_chat PRIVATE "${compiler_options} " )
66
66
target_link_libraries (example_chat PUBLIC ${REQUIRED_LIBRARIES} )
67
67
68
+ add_executable (example_static_file example_static_file.cpp)
69
+ target_compile_options (example_static_file PRIVATE "${compiler_options} " )
70
+ target_link_libraries (example_static_file PUBLIC ${REQUIRED_LIBRARIES} )
71
+
68
72
add_executable (example_catchall example_catchall.cpp)
69
73
target_compile_options (example_catchall PRIVATE "${compiler_options} " )
70
74
target_link_libraries (example_catchall PUBLIC ${REQUIRED_LIBRARIES} )
Original file line number Diff line number Diff line change 1
1
// #define CROW_STATIC_DRIECTORY "alternative_directory/"
2
2
// #define CROW_STATIC_ENDPOINT "/alternative_endpoint/<path>"
3
+ // #define CROW_DISABLE_STATIC_DIR
3
4
#define CROW_MAIN
4
5
#include " crow.h"
5
6
Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ namespace crow
212
212
res.set_static_file_info (CROW_STATIC_DIRECTORY + file_path_partial);
213
213
res.end ();
214
214
});
215
- validate ();
216
215
#endif
216
+ validate ();
217
217
218
218
#ifdef CROW_ENABLE_SSL
219
219
if (use_ssl_)
You can’t perform that action at this time.
0 commit comments