aboutsummaryrefslogtreecommitdiff
path: root/internal/api/api.go
diff options
context:
space:
mode:
authorGravatar AiraNadih <128119996+AiraNadih@users.noreply.github.com> 2024-10-18 11:59:05 +0800
committerGravatar GitHub <noreply@github.com> 2024-10-17 20:59:05 -0700
commit0adbcc3a04aafc203d8303048e4ab82918463b2b (patch)
tree14426bd998be18cef047e7abf4bf8b10bf04bb7c /internal/api/api.go
parent7fdb450446aded0f95f490a0fee275e3dfdf507b (diff)
downloadv2-0adbcc3a04aafc203d8303048e4ab82918463b2b.tar.gz
v2-0adbcc3a04aafc203d8303048e4ab82918463b2b.tar.zst
v2-0adbcc3a04aafc203d8303048e4ab82918463b2b.zip
feat(api): add endpoint for user integration status
Diffstat (limited to 'internal/api/api.go')
-rw-r--r--internal/api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/api.go b/internal/api/api.go
index 48d13039..19d5ba62 100644
--- a/internal/api/api.go
+++ b/internal/api/api.go
@@ -37,6 +37,7 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
sr.HandleFunc("/users/{userID:[0-9]+}", handler.updateUser).Methods(http.MethodPut)
sr.HandleFunc("/users/{userID:[0-9]+}", handler.removeUser).Methods(http.MethodDelete)
sr.HandleFunc("/users/{userID:[0-9]+}/mark-all-as-read", handler.markUserAsRead).Methods(http.MethodPut)
+ sr.HandleFunc("/users/integrations/status", handler.getIntegrationsStatus).Methods(http.MethodGet)
sr.HandleFunc("/users/{username}", handler.userByUsername).Methods(http.MethodGet)
sr.HandleFunc("/me", handler.currentUser).Methods(http.MethodGet)
sr.HandleFunc("/categories", handler.createCategory).Methods(http.MethodPost)