conf duration in secs

This commit is contained in:
Umputun
2018-02-04 15:05:44 -06:00
parent fd579bde44
commit 13f027c8a1
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -318,14 +318,14 @@ func (s *Server) findUserCommentsCtrl(w http.ResponseWriter, r *http.Request) {
func (s *Server) configCtrl(w http.ResponseWriter, r *http.Request) {
type config struct {
Version string
EditDuration time.Duration
EditDuration int
Admins []string
Auth []string
}
cnf := config{
Version: s.Version,
EditDuration: s.DataService.EditDuration,
EditDuration: int(s.DataService.EditDuration.Seconds()),
Admins: s.Admins,
}
authNames := []string{}
+3
View File
@@ -52,3 +52,6 @@ GET {{host}}/api/v1/count?site=remark&url=https://radio-t.com/p/2017/12/16/podca
### list commented posts
GET {{host}}/api/v1/list?site=remark
### get config
GET {{host}}/api/v1/config