feat: post list and edition redirect

This commit is contained in:
Florian Sylvain committed 2024-05-17 16:38:41 +02:00
1 parent 24eefb743b
commit 900ad3e8b8
2062 files changed
+7238 -24

No files matched your search

+4
View File
@@ -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)
}