Feat: renotify bot btn and handler

This commit is contained in:
Grail Finder
2025-06-13 19:37:17 +03:00
parent 4d45a886d2
commit bddaa912de
5 changed files with 32 additions and 6 deletions

View File

@ -43,6 +43,8 @@ func ListenToRequests(port string) error {
mux.HandleFunc("GET /word/show-color", handlers.HandleShowColor)
mux.HandleFunc("POST /check/name", handlers.HandleNameCheck)
mux.HandleFunc("GET /add-bot", handlers.HandleAddBot)
// special
mux.HandleFunc("GET /renotify-bot", handlers.HandleRenotifyBot)
// sse
mux.Handle("GET /sub/sse", handlers.Notifier)
slog.Info("Listening", "addr", port)