module

Blogging

Constants

ROUTES = Marten::Routing::Map.draw do path("/", HomeHandler, name: "home") path("/post", ArticleCreateHandler, name: "article_create") path("/article/<slug:slug>", ArticleDetailHandler, name: "article_detail") path("/article/<slug:slug>/edit", ArticleUpdateHandler, name: "article_update") path("/article/<slug:slug>/delete", ArticleDeleteHandler, name: "article_delete") path("/article/<slug:slug>/favorite", ArticleFavoriteHandler, name: "article_favorite") path("/article/<slug:slug>/comment", CommentCreateHandler, name: "comment_create") path("/article/<slug:slug>/comment/<comment_id:int>/delete", CommentDeleteHandler, name: "comment_delete") end

Nested types