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 77c04d5c5312cb379c0e6b54b8166c7877b7fa06 [formerly b74eb0f524]]]
Former-commit-id: 73cea79399865458de18380186b794010c460fd4 [formerly 0f13ec6f6b58cc3176d204974595339b45069cf8]
Former-commit-id: 907f53386f006851ebe03779be396dd1aeb6ae0c
Former-commit-id: b7e0bb94d9
This commit is contained in:
Zack Scholl 2016-02-10 09:21:24 -05:00
parent 25607dd3c8
commit c45698c59f
3 changed files with 27 additions and 13 deletions

View File

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

View File

@ -26,7 +26,7 @@ func editNote(c *gin.Context) {
if title == "ws" { if title == "ws" {
wshandler(c.Writer, c.Request) wshandler(c.Writer, c.Request)
} else if title == "robots.txt" { } 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 { } else if strings.ToLower(title) == "about" { //}&& strings.Contains(AllowedIPs, c.ClientIP()) != true {
c.Redirect(302, "/about/view") c.Redirect(302, "/about/view")
} else { } else {

File diff suppressed because one or more lines are too long