Add 'users', 'users/valid/', and 'users/invalid/' endpoints to API

This commit is contained in:
2025-05-24 19:32:36 +04:00
parent 50af73f26a
commit 12e51b5a22
7 changed files with 106 additions and 4 deletions

View File

@@ -34,6 +34,9 @@ func Run(
"GET /xrpc/app.bsky.feed.getFeedSkeleton",
authMiddleware.JWTAuthMiddleware(http.HandlerFunc(feedHandler.GetFeedSkeleton)),
)
mux.HandleFunc("GET /{feed}/users", feedHandler.GetAllUsers)
mux.HandleFunc("GET /{feed}/users/valid/", feedHandler.GetValidUsers)
mux.HandleFunc("GET /{feed}/users/invalid/", feedHandler.GetInvalidUsers)
httpServer := &http.Server{
Addr: fmt.Sprintf(":%d", apiConfig.APIPort),