mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-22 05:27:05 +02:00
add screenshot function.
This commit is contained in:
parent
057ab2d886
commit
ca6c24dee1
5 changed files with 43 additions and 2 deletions
|
@ -298,6 +298,10 @@ func (ws *WebSocketHandler) Stats() types.Stats {
|
|||
}
|
||||
}
|
||||
|
||||
func (ws *WebSocketHandler) IsLocked(resource string) bool {
|
||||
return ws.state.IsLocked(resource)
|
||||
}
|
||||
|
||||
func (ws *WebSocketHandler) IsAdmin(password string) (bool, error) {
|
||||
if password == ws.conf.AdminPassword {
|
||||
return true, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue