Refactor page routes into multiple submodules
This commit is contained in:
@ -14,6 +14,8 @@ func Get(ctx *aero.Context) string {
|
||||
id := ctx.Get("id")
|
||||
user := utils.GetUser(ctx)
|
||||
post, err := arn.GetPost(id)
|
||||
// a := 0
|
||||
// a++
|
||||
|
||||
if err != nil {
|
||||
return ctx.Error(http.StatusNotFound, "Post not found", err)
|
||||
|
Reference in New Issue
Block a user