update
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ func Article(c *gin.Context) {
|
||||
|
||||
id = strings.Replace(id, "-", "/", -1)
|
||||
|
||||
articleBasePath := "./article"
|
||||
articleBasePath := os.Getenv("ARTICLE_PATH")
|
||||
|
||||
articlePath := articleBasePath + "/" + id + ".md"
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
func Index(c *gin.Context) {
|
||||
|
||||
articleBasePath := "./article"
|
||||
articleBasePath := os.Getenv("ARTICLE_PATH")
|
||||
|
||||
list := make([]string, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user