@@ -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.
The note is not visible to the blocked user.