mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Renaming
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:
parent
e6353e90db
commit
b7e0bb94d9
4
main.go
4
main.go
@ -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")
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user