fix: simplified development server architecture

This commit is contained in:
2023-04-29 15:46:08 +02:00
parent a72f543346
commit 6ff903fb06
6 changed files with 15 additions and 19 deletions
-16
View File
@@ -1,16 +0,0 @@
package main
import (
"encoding/json"
"go-vite-kit/backend/routes"
"log"
"os"
)
func main() {
enc := json.NewEncoder(os.Stdout)
enc.SetIndent("", " ")
if err := enc.Encode(routes.HtmlEntrypoints); err != nil {
log.Fatal(err)
}
}
-4
View File
@@ -44,10 +44,6 @@ func main() {
app.Route("/api", router.Api)
if strings.HasPrefix(config.Mode, "dev") {
app.Get("/dev/routes", func(c *fiber.Ctx) error {
return c.JSON(routes.HtmlEntrypoints)
})
setupDevServer()
}