mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 09:47:17 +00:00
[server] Add API to return feature flags value
This commit is contained in:
@@ -49,3 +49,13 @@ func (h *RemoteStoreHandler) GetKey(c *gin.Context) {
|
||||
}
|
||||
c.JSON(http.StatusOK, resp)
|
||||
}
|
||||
|
||||
// GetFeatureFlags returns all the feature flags and value for given user
|
||||
func (h *RemoteStoreHandler) GetFeatureFlags(c *gin.Context) {
|
||||
resp, err := h.Controller.GetFeatureFlags(c)
|
||||
if err != nil {
|
||||
handler.Error(c, stacktrace.Propagate(err, "failed to get feature flags"))
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, resp)
|
||||
}
|
||||
|
Reference in New Issue
Block a user