1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 00:18:31 +00:00

Add /all_topics endpoint

Temporarily not protected with sealing, we'll see how the performance is
first.
This commit is contained in:
Kane York 2017-09-21 10:33:06 -07:00
parent b4f4a65a68
commit b108177942
3 changed files with 35 additions and 0 deletions

View file

@ -103,6 +103,7 @@ func SetupServerAndHandle(config *ConfigFile, serveMux *http.ServeMux) {
serveMux.HandleFunc("/uncached_pub", HTTPBackendUncachedPublish)
serveMux.HandleFunc("/cached_pub", HTTPBackendCachedPublish)
serveMux.HandleFunc("/get_sub_count", HTTPGetSubscriberCount)
serveMux.HandleFunc("/all_topics", HTTPListAllTopics)
announceForm, err := Backend.secureForm.Seal(url.Values{
"startup": []string{"1"},