2019-12-07 16:40:42 +00:00
|
|
|
package handlers
|
|
|
|
|
2019-12-24 02:14:52 +00:00
|
|
|
import "github.com/authelia/authelia/internal/middlewares"
|
2019-12-07 16:40:42 +00:00
|
|
|
|
|
|
|
type ConfigurationBody struct {
|
|
|
|
GoogleAnalyticsTrackingID string `json:"ga_tracking_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func ConfigurationGet(ctx *middlewares.AutheliaCtx) {
|
|
|
|
body := ConfigurationBody{
|
|
|
|
GoogleAnalyticsTrackingID: ctx.Configuration.GoogleAnalyticsTrackingID,
|
|
|
|
}
|
|
|
|
ctx.SetJSONBody(body)
|
|
|
|
}
|