conf duration in secs
This commit is contained in:
+2
-2
@@ -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{}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user