1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
Former-commit-id: e8d2a9531961624a39a42eb9ae3c35191bc8498d [formerly 8b09b7227e9b5e1e44be028a9026b240f735da22] [formerly ed47e3277e41f092901b1efd73ad03ffab65500d [formerly b74eb0f524]]
Former-commit-id: 73cea79399865458de18380186b794010c460fd4 [formerly 0f13ec6f6b58cc3176d204974595339b45069cf8]
Former-commit-id: 907f53386f006851ebe03779be396dd1aeb6ae0c
This commit is contained in:
Zack Scholl 2016-02-10 09:21:24 -05:00
parent e6353e90db
commit b7e0bb94d9
3 changed files with 27 additions and 13 deletions

View File

@ -59,8 +59,8 @@ Options:`)
defer Close()
// Default page
p := WikiData{"about", about_page, []string{}, []string{}}
p.save(about_page)
p := WikiData{"about", aboutPageText, []string{}, []string{}}
p.save(aboutPageText)
// var q WikiData
// q.load("SpikySeaSlug2")

View File

@ -26,7 +26,7 @@ func editNote(c *gin.Context) {
if title == "ws" {
wshandler(c.Writer, c.Request)
} else if title == "robots.txt" {
c.Data(200, "text/plain", []byte(robots_txt))
c.Data(200, "text/plain", []byte(robotsTxt))
} else if strings.ToLower(title) == "about" { //}&& strings.Contains(AllowedIPs, c.ClientIP()) != true {
c.Redirect(302, "/about/view")
} else {

File diff suppressed because one or more lines are too long