Adjustment to have enable/disable client on UI

This commit is contained in:
Khanh Ngo
2020-04-22 17:11:28 +07:00
parent e52ffaf686
commit dbb85cb759
6 changed files with 138 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ func main() {
app.GET("/", handler.WireGuardClients())
app.POST("/new-client", handler.NewClient())
app.POST("/client/set-status", handler.SetClientStatus())
app.POST("/remove-client", handler.RemoveClient())
app.GET("/wg-server", handler.WireGuardServer())
app.POST("wg-server/interfaces", handler.WireGuardServerInterfaces())