15 lines
230 B
Go
15 lines
230 B
Go
|
package route
|
||
|
|
||
|
import (
|
||
|
"gin-demo/controller"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func CollectRoute(r *gin.Engine) *gin.Engine {
|
||
|
categoryController := controller.MarkdownLoad()
|
||
|
r.GET("/*path", categoryController.Show)
|
||
|
|
||
|
return r
|
||
|
}
|