From b0ffad5e76c3a59a19b4dea0944a268bdd214a01 Mon Sep 17 00:00:00 2001 From: Howl Date: Mon, 26 Sep 2016 20:07:47 +0200 Subject: [PATCH] Add title to doc/rules --- app/v1/doc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/v1/doc.go b/app/v1/doc.go index 3e0bd60..e5bd59a 100644 --- a/app/v1/doc.go +++ b/app/v1/doc.go @@ -77,6 +77,7 @@ func DocContentGET(md common.MethodData) common.CodeMessager { // DocRulesGET gets the rules. func DocRulesGET(md common.MethodData) common.CodeMessager { var r docContentResponse + r.Title = "Rules" err := md.DB.QueryRow("SELECT doc_contents FROM docs WHERE is_rule = '1' LIMIT 1").Scan(&r.Content) const ruleFree = "# This Ripple instance is rule-free! Yay!" switch {