cosmium/main.go

19 lines
306 B
Go
Raw Normal View History

2024-02-10 15:17:34 +00:00
package main
import (
"fmt"
"github.com/pikami/cosmium/api"
"github.com/pikami/cosmium/api/config"
2024-02-10 15:17:34 +00:00
)
func main() {
config.ParseFlags()
2024-02-10 15:17:34 +00:00
router := api.CreateRouter()
router.RunTLS(
fmt.Sprintf(":%d", config.Config.Port),
config.Config.TLS_CertificatePath,
config.Config.TLS_CertificateKey)
2024-02-10 15:17:34 +00:00
}