Add Server config page

Handle server ip addresses input and store
TODO: Key pair form
This commit is contained in:
Khanh Ngo 2020-04-19 15:50:59 +07:00
parent 20fcdbafa5
commit febf075f8d
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
9 changed files with 285 additions and 22 deletions

View file

@ -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"))
}