2fas-server/cmd/websocket/main.go
2023-01-30 19:59:42 +01:00

18 lines
377 B
Go

package main
import (
"github.com/twofas/2fas-server/config"
"github.com/twofas/2fas-server/internal/common/logging"
"github.com/twofas/2fas-server/internal/websocket"
)
func main() {
logging.WithDefaultField("service_name", "websocket_api")
config.LoadConfiguration()
server := websocket.NewServer(config.Config.Websocket.ListenAddr)
server.RunWebsocketServer()
}