Add global setting form

This commit is contained in:
Khanh Ngo 2020-04-20 09:54:41 +07:00
parent 6f8e5cdbca
commit e99a5ba92b
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
7 changed files with 240 additions and 1 deletions

View file

@ -14,5 +14,7 @@ func main() {
app.GET("/wg-server", handler.WireGuardServer())
app.POST("wg-server/interfaces", handler.WireGuardServerInterfaces())
app.POST("wg-server/keypair", handler.WireGuardServerKeyPair())
app.GET("/global-settings", handler.GlobalSettings())
app.POST("/global-settings", handler.GlobalSettingSubmit())
app.Logger.Fatal(app.Start("127.0.0.1:5000"))
}