diff --git a/api/api.go b/api/api.go index f1c390d..20deb5d 100644 --- a/api/api.go +++ b/api/api.go @@ -24,11 +24,6 @@ var info = Info{ Version: "1.0", } -var motd = WebsocketMotd{ - Info: info, - Motd: "Hello, world", -} - type WebApi struct { server fasthttp.Server db *gorm.DB @@ -90,18 +85,9 @@ func New(db *gorm.DB) *WebApi { api.db = db db.AutoMigrate(&UploadSlot{}) - api.setupMotd() - return api } -func (api *WebApi) setupMotd() { - var data []byte - data, _ = json.Marshal(motd) - motdMsg, _ := websocket.NewPreparedMessage(websocket.TextMessage, data) - api.MotdMessage = motdMsg -} - func (api *WebApi) Run() { address := GetServerAddress()