change sorting to show latest posts first
This commit is contained in:
parent
7cb2ac3e8f
commit
e689d210e7
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ func genBasicAuthHeader(user, password string) string {
|
|||
}
|
||||
|
||||
func ListGemLogs(config *Config) ([]GemlogListEntry, error) {
|
||||
url := fmt.Sprintf("%s:%d/gemlog/_design/gemlog-cli/_view/list", config.CouchDB.Host, config.CouchDB.Port)
|
||||
url := fmt.Sprintf("%s:%d/gemlog/_design/gemlog-cli/_view/list?descending=true", config.CouchDB.Host, config.CouchDB.Port)
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create request: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue