mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
refactor: consolidate maintenance mode endpoints and enhance site status handling
This commit is contained in:
parent
a2d5f005b0
commit
df304b41bc
29 changed files with 2102 additions and 1816 deletions
|
@ -23,7 +23,7 @@ func CheckAndCreateHistory(path string, content string) error {
|
|||
// Read the current content of the file
|
||||
currentContent, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
|
||||
// Compare the contents
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue