feat(backend): set the static path to the docs
This commit is contained in:
@@ -11,6 +11,9 @@ func main() {
|
||||
fmt.Println("Welcome to lst backend where all the fun happens.")
|
||||
r := gin.Default()
|
||||
|
||||
// Serve Docusaurus static files
|
||||
r.StaticFS("/lst/docs", http.Dir("../lst-docs/build"))
|
||||
|
||||
|
||||
r.GET("/api/ping", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{"message": "pong"})
|
||||
|
||||
Reference in New Issue
Block a user