Refactor page routes into multiple submodules

This commit is contained in:
2018-04-25 20:03:35 +02:00
parent d331e15363
commit 2503d63b60
21 changed files with 577 additions and 369 deletions

View File

@ -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)