feat: Tích hợp Bản quyền License AES-256 (OTH.Adapter), Biên bản giao ban A4, Biểu đồ tròn và Tài liệu triển khai demo
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
"web-giao-ban-go/config"
|
||||
"web-giao-ban-go/handlers"
|
||||
"web-giao-ban-go/license"
|
||||
"web-giao-ban-go/logger"
|
||||
"web-giao-ban-go/tray"
|
||||
)
|
||||
@@ -34,6 +35,9 @@ func main() {
|
||||
logger.Info("Đã nạp file cấu hình thành công (Port: %d, Admin: %s)", cfg.Server.Port, cfg.Server.AdminPath)
|
||||
}
|
||||
|
||||
// Initialize License
|
||||
license.InitLicense()
|
||||
|
||||
handlers.EnsureDirs()
|
||||
|
||||
// Run system tray (Windows GUI) or signal listener (Linux daemon)
|
||||
@@ -184,6 +188,10 @@ func startWebServer() {
|
||||
mountAPI("/api/update/check", handlers.HandleCheckUpdate)
|
||||
mountAPI("/api/update/apply", handlers.HandleApplyUpdate)
|
||||
|
||||
// License APIs
|
||||
mountAPI("/api/license/status", handlers.HandleGetLicenseStatus)
|
||||
mountAPI("/api/license/activate", handlers.HandleActivateLicense)
|
||||
|
||||
// Static website routes
|
||||
mux.HandleFunc("/web-giao-ban-go", staticHandler)
|
||||
mux.HandleFunc("/web-giao-ban-go/", staticHandler)
|
||||
|
||||
Reference in New Issue
Block a user