Add authentication
This commit is contained in:
2
main.go
2
main.go
@@ -20,6 +20,8 @@ func main() {
|
||||
|
||||
app.GET("/", handler.WireGuardClients())
|
||||
app.GET("/login", handler.LoginPage())
|
||||
app.POST("/login", handler.Login())
|
||||
app.GET("/logout", handler.Logout())
|
||||
app.POST("/new-client", handler.NewClient())
|
||||
app.POST("/client/set-status", handler.SetClientStatus())
|
||||
app.POST("/remove-client", handler.RemoveClient())
|
||||
|
||||
Reference in New Issue
Block a user