mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-09 17:34:25 +03:00
Add Server config page
Handle server ip addresses input and store TODO: Key pair form
This commit is contained in:
parent
20fcdbafa5
commit
febf075f8d
9 changed files with 285 additions and 22 deletions
5
main.go
5
main.go
|
@ -8,9 +8,10 @@ import (
|
|||
func main() {
|
||||
app := router.New()
|
||||
|
||||
app.GET("/", handler.Home())
|
||||
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"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue