mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Works so much better
This commit is contained in:
8
main.go
Executable file → Normal file
8
main.go
Executable file → Normal file
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
@ -21,10 +22,17 @@ func main() {
|
||||
ExternalIP = os.Args[1]
|
||||
Open()
|
||||
defer Close()
|
||||
|
||||
// Default page
|
||||
p := CowyoData{"about", about_page}
|
||||
p.save()
|
||||
fmt.Println(about_page)
|
||||
|
||||
r := gin.Default()
|
||||
r.LoadHTMLGlob("templates/*")
|
||||
r.GET("/", newNote)
|
||||
r.GET("/:title", editNote)
|
||||
r.GET("/:title/*option", everythingElse)
|
||||
r.DELETE("/listitem", deleteListItem)
|
||||
r.Run(":12312")
|
||||
}
|
||||
|
Reference in New Issue
Block a user