Added Configuration

This commit is contained in:
2022-05-24 16:03:32 -05:00
parent 880b858d01
commit 8217f83e67
5 changed files with 560 additions and 17 deletions

View File

@@ -15,11 +15,17 @@ import (
var indexHTML embed.FS
func main() {
//For General File Storage
os.MkdirAll("data", 0755)
r := gin.Default()
r.GET("/", index)
r.GET("/api/update", update)
r.GET("/backup.zip", backup)
r.POST("/configure", configure)
srv := &http.Server{
Addr: ":2169",
Handler: r,