mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
updates
This commit is contained in:
4
main.go
4
main.go
@@ -94,8 +94,10 @@ func main() {
|
||||
return nil
|
||||
})
|
||||
|
||||
// create ssh key if it doesn't exist
|
||||
app.OnBeforeServe().Add(func(e *core.ServeEvent) error {
|
||||
// create ssh key if it doesn't exist
|
||||
getSSHKey()
|
||||
// api route to return public key
|
||||
e.Router.GET("/getkey", func(c echo.Context) error {
|
||||
requestData := apis.RequestInfo(c)
|
||||
if requestData.Admin == nil {
|
||||
|
Reference in New Issue
Block a user