Add Server config page
Handle server ip addresses input and store TODO: Key pair form
This commit is contained in:
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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user