mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
feat: post list and edition redirect
This commit is contained in:
@@ -19,3 +19,7 @@ func NewGetPostUseCase(db *gorm.DB) *GetPostUseCase {
|
||||
func (g *GetPostUseCase) GetPost(id uint32) (post.Post, error) {
|
||||
return g.postRepository.Get(id)
|
||||
}
|
||||
|
||||
func (g *GetPostUseCase) GetPostByName(name string) (post.Post, error) {
|
||||
return g.postRepository.GetByName(name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user