1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
This commit is contained in:
Zack Scholl 2016-02-10 09:21:24 -05:00
parent f986e2b9bf
commit b74eb0f524
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