feat(backend): set the static path to the docs

This commit is contained in:
2025-07-16 19:55:55 -05:00
parent 3fdcc110e3
commit 5a9636cdc1

View File

@@ -11,6 +11,9 @@ func main() {
fmt.Println("Welcome to lst backend where all the fun happens.") fmt.Println("Welcome to lst backend where all the fun happens.")
r := gin.Default() r := gin.Default()
// Serve Docusaurus static files
r.StaticFS("/lst/docs", http.Dir("../lst-docs/build"))
r.GET("/api/ping", func(c *gin.Context) { r.GET("/api/ping", func(c *gin.Context) {
c.JSON(200, gin.H{"message": "pong"}) c.JSON(200, gin.H{"message": "pong"})