mirror of https://github.com/shunfei/cronsun
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
331 B
16 lines
331 B
package web
|
|
|
|
import "github.com/shunfei/cronsun/conf"
|
|
|
|
type Configuration struct{}
|
|
|
|
func (cnf *Configuration) Configuratios(ctx *Context) {
|
|
outJSON(ctx.W, struct {
|
|
Security *conf.Security `json:"security"`
|
|
Alarm bool `json:"alarm"`
|
|
}{
|
|
Security: conf.Config.Security,
|
|
Alarm: conf.Config.Mail.Enable,
|
|
})
|
|
}
|