kontor-echo: setup project to show homepage
This commit is contained in:
@@ -31,7 +31,8 @@ func main() {
|
||||
defer stop()
|
||||
|
||||
sc := echo.StartConfig{
|
||||
Address: ":1323",
|
||||
//Address: fmt.Sprintf(":%d", config.ServerConfig.Server.Port),
|
||||
Address: ":8400",
|
||||
GracefulTimeout: 10 * time.Second,
|
||||
}
|
||||
if err := sc.Start(ctx, e); err != nil {
|
||||
|
||||
@@ -20,7 +20,6 @@ func main() {
|
||||
}
|
||||
|
||||
e := echo.New()
|
||||
e.GET("/health", handler.GetHealth)
|
||||
e.POST("/login", handler.Login)
|
||||
|
||||
skipper := func(c echo.Context) bool {
|
||||
@@ -47,7 +46,6 @@ func main() {
|
||||
group := e.Group("/api")
|
||||
group.Use(echojwt.WithConfig(echojwt.Config{SigningKey: []byte("secret")}))
|
||||
handler.SetupComicRoutes(group)
|
||||
handler.SetupMediaRoutes(group)
|
||||
|
||||
e.Logger.Fatal(e.Start(":8400"))
|
||||
log.Println("Kontor finished")
|
||||
|
||||
Reference in New Issue
Block a user