Add title to doc/rules
This commit is contained in:
parent
a197647933
commit
b0ffad5e76
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user