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
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
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())