1
0
mirror of https://github.com/vwxyzjn/portwarden synced 2026-01-21 11:53:17 +00:00
Files
portwarden/web/server.go
2018-11-15 18:39:00 -05:00

21 lines
313 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.GET("/ws", controllers.EncryptBackupController)
r.Run(":5000")
}