it works again

This commit is contained in:
Aaron Kimbre
2025-01-26 01:19:38 -06:00
parent 848c930292
commit ddd9ff273e
6 changed files with 13 additions and 13 deletions

View File

@@ -6,17 +6,13 @@ set(DCHATSERVER_SOURCES
"ChatWeb.cpp"
)
include_directories(
${PROJECT_SOURCE_DIR}/dWeb
)
add_executable(ChatServer "ChatServer.cpp")
target_include_directories(ChatServer PRIVATE "${PROJECT_SOURCE_DIR}/dChatFilter")
target_include_directories(ChatServer PRIVATE "${PROJECT_SOURCE_DIR}/dChatFilter" "${PROJECT_SOURCE_DIR}/dWeb")
add_compile_definitions(ChatServer PRIVATE PROJECT_VERSION="\"${PROJECT_VERSION}\"")
add_library(dChatServer ${DCHATSERVER_SOURCES})
target_include_directories(dChatServer PRIVATE "${PROJECT_SOURCE_DIR}/dServer")
target_link_libraries(dChatServer ${COMMON_LIBRARIES} dChatFilter)
target_link_libraries(ChatServer ${COMMON_LIBRARIES} dChatFilter dChatServer dServer mongoose dWeb)
target_link_libraries(ChatServer ${COMMON_LIBRARIES} dChatFilter dChatServer dServer dWeb)

View File

@@ -99,7 +99,7 @@ void HandleWSUnsubscribe(mg_connection* connection, json data) {
}
}
void RegisterRoutes() {
void ChatWeb::RegisterRoutes() {
// REST API v1 routes
std::string v1_route = "/api/v1/";
Game::web.RegisterHTTPRoute({