mirror of
https://github.com/vwxyzjn/portwarden
synced 2026-01-04 16:13:13 +00:00
21 lines
319 B
Go
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")
|
|
}
|