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.
20 lines
371 B
20 lines
371 B
package web
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/shunfei/cronsun/conf"
|
|
)
|
|
|
|
type Configuration struct{}
|
|
|
|
func (cnf *Configuration) Configuratios(w http.ResponseWriter, r *http.Request) {
|
|
outJSON(w, struct {
|
|
Security *conf.Security `json:"security"`
|
|
Alarm bool `json:"alarm"`
|
|
}{
|
|
Security: conf.Config.Security,
|
|
Alarm: conf.Config.Mail.Enable,
|
|
})
|
|
}
|