mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-09 17:34:25 +03:00
Initial commit
This commit is contained in:
commit
6cb8527c35
12 changed files with 741 additions and 0 deletions
16
main.go
Normal file
16
main.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/ngoduykhanh/wireguard-ui/handler"
|
||||
"github.com/ngoduykhanh/wireguard-ui/router"
|
||||
)
|
||||
|
||||
func main() {
|
||||
app := router.New()
|
||||
|
||||
app.GET("/", handler.Home())
|
||||
app.POST("/new-client", handler.NewClient())
|
||||
app.POST("/remove-client", handler.RemoveClient())
|
||||
|
||||
app.Logger.Fatal(app.Start("127.0.0.1:5000"))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue