Add title to doc/rules

This commit is contained in:
Howl 2016-09-26 20:07:47 +02:00
parent a197647933
commit b0ffad5e76

View File

@ -77,6 +77,7 @@ func DocContentGET(md common.MethodData) common.CodeMessager {
// DocRulesGET gets the rules. // DocRulesGET gets the rules.
func DocRulesGET(md common.MethodData) common.CodeMessager { func DocRulesGET(md common.MethodData) common.CodeMessager {
var r docContentResponse var r docContentResponse
r.Title = "Rules"
err := md.DB.QueryRow("SELECT doc_contents FROM docs WHERE is_rule = '1' LIMIT 1").Scan(&r.Content) 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!" const ruleFree = "# This Ripple instance is rule-free! Yay!"
switch { switch {