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