15 lines
367 B
Go
15 lines
367 B
Go
|
package handlers
|
||
|
|
||
|
import "github.com/clems4ever/authelia/internal/middlewares"
|
||
|
|
||
|
type ConfigurationBody struct {
|
||
|
GoogleAnalyticsTrackingID string `json:"ga_tracking_id,omitempty"`
|
||
|
}
|
||
|
|
||
|
func ConfigurationGet(ctx *middlewares.AutheliaCtx) {
|
||
|
body := ConfigurationBody{
|
||
|
GoogleAnalyticsTrackingID: ctx.Configuration.GoogleAnalyticsTrackingID,
|
||
|
}
|
||
|
ctx.SetJSONBody(body)
|
||
|
}
|