mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +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
|
@ -3,8 +3,9 @@ package site
|
|||
import "github.com/uozi-tech/cosy"
|
||||
|
||||
var (
|
||||
e = cosy.NewErrorScope("site")
|
||||
ErrSiteNotFound = e.New(40401, "site not found")
|
||||
ErrDstFileExists = e.New(50001, "destination file already exists")
|
||||
ErrSiteIsEnabled = e.New(50002, "site is enabled")
|
||||
e = cosy.NewErrorScope("site")
|
||||
ErrSiteNotFound = e.New(40401, "site not found")
|
||||
ErrDstFileExists = e.New(50001, "destination file already exists")
|
||||
ErrSiteIsEnabled = e.New(50002, "site is enabled")
|
||||
ErrSiteIsInMaintenance = e.New(50003, "site is in maintenance mode")
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue