Add wireguard server key pair generation

This commit is contained in:
Khanh Ngo 2020-04-20 00:15:25 +07:00
parent febf075f8d
commit d5ff0cb704
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
5 changed files with 113 additions and 8 deletions

View file

@ -13,5 +13,6 @@ func main() {
app.POST("/remove-client", handler.RemoveClient())
app.GET("/wg-server", handler.WireGuardServer())
app.POST("wg-server/interfaces", handler.WireGuardServerInterfaces())
app.POST("wg-server/keypair", handler.WireGuardServerKeyPair())
app.Logger.Fatal(app.Start("127.0.0.1:5000"))
}