This commit is contained in:
2026-06-21 19:29:42 +08:00
parent 4f6c24cc49
commit a84982e1f5
8 changed files with 320 additions and 6 deletions
+2
View File
@@ -56,6 +56,8 @@ func main() {
admin.Use(middleware.AuthRequired())
{
admin.GET("", handlers.AdminDashboard())
admin.GET("/articles/new", handlers.ArticleCreatePage(db))
admin.POST("/articles/new", handlers.ArticleCreate(db))
}
// Protected profile routes.