package main

import (
	"fmt"
	"os"

	"galaxy/game/internal/router"
	"galaxy/game/internal/router/handler"
)

func main() {
	if _, err := handler.ResolveStoragePath(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}

	r := router.NewRouter()
	if err := r.Run(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}
