mirror of
https://github.com/aziis98/go-vite-kit.git
synced 2026-10-07 06:34:52 +00:00
fix: simplified development server architecture
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user