mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 09:11:01 +00:00
Refactor(frontend): Refactor frontend using Lit
Refactor(database): use gorm+sqlite instead of bbolt Feat: Add delete short link functionality Fix: Load correct configuration template during meta config conversion
This commit is contained in:
5
main.go
5
main.go
@@ -5,7 +5,6 @@ import (
|
||||
"io"
|
||||
|
||||
"github.com/bestnite/sub2clash/common"
|
||||
"github.com/bestnite/sub2clash/common/database"
|
||||
"github.com/bestnite/sub2clash/config"
|
||||
"github.com/bestnite/sub2clash/logger"
|
||||
"github.com/bestnite/sub2clash/server"
|
||||
@@ -29,10 +28,6 @@ func init() {
|
||||
logger.Logger.Panic("load config failed", zap.Error(err))
|
||||
}
|
||||
|
||||
err = database.ConnectDB()
|
||||
if err != nil {
|
||||
logger.Logger.Panic("database connect failed", zap.Error(err))
|
||||
}
|
||||
logger.Logger.Info("database connect success")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user