Skip to content

Commit f4525ee

Browse files
author
Jadit19
committed
separate example
1 parent 400dea9 commit f4525ee

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1515
option(USE_INSTALL_RESOURCE_PATH "Set resource path to install location" OFF)
1616

1717
add_executable(${PROJECT_NAME}
18-
./src/main.cpp
1918
./src/server.cpp
2019
./src/router.cpp
2120
./src/response.cpp
2221
./src/process.cpp
22+
23+
./example/main.cpp
2324
)
2425

2526
target_include_directories(${PROJECT_NAME}

src/main.cpp renamed to example/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void helloHandler(Request &request, Response &response) {
88
}
99

1010
int main(int argc, char **argv) {
11-
Process process("/home/adit/github/expresso/.env");
11+
Process process("../.env");
1212
Server app;
1313
Router helloRouter;
1414

0 commit comments

Comments
 (0)