module Blogging

Defined in:

apps/blogging/app.cr
apps/blogging/handlers/article_create_handler.cr
apps/blogging/handlers/article_delete_handler.cr
apps/blogging/handlers/article_detail_handler.cr
apps/blogging/handlers/article_favorite_handler.cr
apps/blogging/handlers/article_update_handler.cr
apps/blogging/handlers/comment_create_handler.cr
apps/blogging/handlers/comment_delete_handler.cr
apps/blogging/handlers/home_handler.cr
apps/blogging/models/article.cr
apps/blogging/models/comment.cr
apps/blogging/models/tag.cr
apps/blogging/routes.cr
apps/blogging/schemas/article_schema.cr
apps/blogging/schemas/comment_schema.cr

Constant Summary

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