mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2026-01-06 06:27:46 -05:00
18 lines
264 B
Go
18 lines
264 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func (s *Server) handleGetFeatures() gin.HandlerFunc {
|
|
return func(c *gin.Context) {
|
|
ff := s.b.GetFeatureFlags()
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"Code": 1000,
|
|
"Toggles": ff,
|
|
})
|
|
}
|
|
}
|