add messages persistancy, channels does not persist

This commit is contained in:
cos
2026-05-07 10:27:39 +02:00
parent bcefea3cf5
commit 916463234f
5 changed files with 128 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@ func main() {
http.HandleFunc("POST /hub", withCORS(httpRequest.HandleHubCreate))
http.HandleFunc("GET /hub", withCORS(httpRequest.GetHubData))
http.HandleFunc("POST /hub/channel/message", withCORS(httpRequest.HandleHubMessage))
http.HandleFunc("GET /hub/channel/messages", withCORS(httpRequest.HandleHubChannelGetMessages))
http.HandleFunc("GET /hub/channel", withCORS(httpRequest.GetChannelData))
http.HandleFunc("GET /hubs", withCORS(httpRequest.HandleGetHubs))
http.HandleFunc("GET /hubs/channels", withCORS(httpRequest.HandleGetChannels))