1
0
mirror of https://github.com/vwxyzjn/portwarden synced 2026-01-04 16:13:13 +00:00
Files
portwarden/web/server.go
2018-11-16 17:31:06 -05:00

21 lines
319 B
Go

package main
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/vwxyzjn/portwarden/web/controllers"
)
func main() {
r := gin.Default()
r.GET("/", func(c *gin.Context) {
http.ServeFile(c.Writer, c.Request, "index.html")
})
r.POST("/encrypt", controllers.EncryptBackupController)
r.Run(":5000")
}