mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
new: Complete modules related to home page, archive page and article page
This commit is contained in:
9
internal/mApp/mRouter.go
Normal file
9
internal/mApp/mRouter.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package mApp
|
||||
|
||||
func (ma *MApp) loadRoutes() {
|
||||
ma.engine.GET("/", ma.IndexHandler)
|
||||
ma.engine.GET("/archive", ma.ArchiveHandler)
|
||||
ma.engine.GET("/post/:hash", ma.PostHandler)
|
||||
|
||||
ma.engine.PUT("/update", ma.UpdateBlogHandler)
|
||||
}
|
||||
Reference in New Issue
Block a user