wireguard-ui/main.go
Khanh Ngo febf075f8d
Add Server config page
Handle server ip addresses input and store
TODO: Key pair form
2020-04-19 15:50:59 +07:00

18 lines
465 B
Go

package main
import (
"github.com/ngoduykhanh/wireguard-ui/handler"
"github.com/ngoduykhanh/wireguard-ui/router"
)
func main() {
app := router.New()
app.GET("/", handler.WireGuardClients())
app.POST("/new-client", handler.NewClient())
app.POST("/remove-client", handler.RemoveClient())
app.GET("/wg-server", handler.WireGuardServer())
app.POST("wg-server/interfaces", handler.WireGuardServerInterfaces())
app.Logger.Fatal(app.Start("127.0.0.1:5000"))
}