2017-11-20 06:10:04 +01:00
|
|
|
// Copyright 2017 Frédéric Guillot. All rights reserved.
|
|
|
|
// Use of this source code is governed by the Apache 2.0
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package controller
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
2017-11-22 00:46:59 +01:00
|
|
|
"log"
|
|
|
|
|
2017-11-20 06:10:04 +01:00
|
|
|
"github.com/miniflux/miniflux2/model"
|
|
|
|
"github.com/miniflux/miniflux2/server/core"
|
|
|
|
"github.com/miniflux/miniflux2/server/ui/payload"
|
|
|
|
)
|
|
|
|
|
2017-11-22 00:46:59 +01:00
|
|
|
// ShowFeedEntry shows a single feed entry in "feed" mode.
|
2017-11-20 06:10:04 +01:00
|
|
|
func (c *Controller) ShowFeedEntry(ctx *core.Context, request *core.Request, response *core.Response) {
|
|
|
|
user := ctx.GetLoggedUser()
|
|
|
|
sortingDirection := model.DefaultSortingDirection
|
|
|
|
|
2017-11-22 03:14:45 +01:00
|
|
|
entryID, err := request.IntegerParam("entryID")
|
2017-11-20 06:10:04 +01:00
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().BadRequest(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-11-22 03:14:45 +01:00
|
|
|
feedID, err := request.IntegerParam("feedID")
|
2017-11-20 06:10:04 +01:00
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().BadRequest(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
|
|
|
builder.WithFeedID(feedID)
|
|
|
|
builder.WithEntryID(entryID)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
|
|
|
|
entry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if entry == nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().NotFound()
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
args, err := c.getCommonTemplateArgs(ctx)
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithFeedID(feedID)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", "<=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(model.DefaultSortingDirection)
|
|
|
|
nextEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithFeedID(feedID)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", ">=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(model.GetOppositeDirection(sortingDirection))
|
|
|
|
prevEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
nextEntryRoute := ""
|
|
|
|
if nextEntry != nil {
|
|
|
|
nextEntryRoute = ctx.GetRoute("feedEntry", "feedID", feedID, "entryID", nextEntry.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
prevEntryRoute := ""
|
|
|
|
if prevEntry != nil {
|
|
|
|
prevEntryRoute = ctx.GetRoute("feedEntry", "feedID", feedID, "entryID", prevEntry.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
if entry.Status == model.EntryStatusUnread {
|
|
|
|
err = c.store.SetEntriesStatus(user.ID, []int64{entry.ID}, model.EntryStatusRead)
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().Render("entry", args.Merge(tplParams{
|
2017-11-20 06:10:04 +01:00
|
|
|
"entry": entry,
|
|
|
|
"prevEntry": prevEntry,
|
|
|
|
"nextEntry": nextEntry,
|
|
|
|
"nextEntryRoute": nextEntryRoute,
|
|
|
|
"prevEntryRoute": prevEntryRoute,
|
|
|
|
"menu": "feeds",
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2017-11-22 00:46:59 +01:00
|
|
|
// ShowCategoryEntry shows a single feed entry in "category" mode.
|
2017-11-20 06:10:04 +01:00
|
|
|
func (c *Controller) ShowCategoryEntry(ctx *core.Context, request *core.Request, response *core.Response) {
|
|
|
|
user := ctx.GetLoggedUser()
|
|
|
|
sortingDirection := model.DefaultSortingDirection
|
|
|
|
|
2017-11-22 03:14:45 +01:00
|
|
|
categoryID, err := request.IntegerParam("categoryID")
|
2017-11-20 06:10:04 +01:00
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().BadRequest(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-11-22 03:14:45 +01:00
|
|
|
entryID, err := request.IntegerParam("entryID")
|
2017-11-20 06:10:04 +01:00
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().BadRequest(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
|
|
|
builder.WithCategoryID(categoryID)
|
|
|
|
builder.WithEntryID(entryID)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
|
|
|
|
entry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if entry == nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().NotFound()
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
args, err := c.getCommonTemplateArgs(ctx)
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithCategoryID(categoryID)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", "<=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(sortingDirection)
|
|
|
|
nextEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithCategoryID(categoryID)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", ">=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(model.GetOppositeDirection(sortingDirection))
|
|
|
|
prevEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
nextEntryRoute := ""
|
|
|
|
if nextEntry != nil {
|
|
|
|
nextEntryRoute = ctx.GetRoute("categoryEntry", "categoryID", categoryID, "entryID", nextEntry.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
prevEntryRoute := ""
|
|
|
|
if prevEntry != nil {
|
|
|
|
prevEntryRoute = ctx.GetRoute("categoryEntry", "categoryID", categoryID, "entryID", prevEntry.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
if entry.Status == model.EntryStatusUnread {
|
|
|
|
err = c.store.SetEntriesStatus(user.ID, []int64{entry.ID}, model.EntryStatusRead)
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(nil)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().Render("entry", args.Merge(tplParams{
|
2017-11-20 06:10:04 +01:00
|
|
|
"entry": entry,
|
|
|
|
"prevEntry": prevEntry,
|
|
|
|
"nextEntry": nextEntry,
|
|
|
|
"nextEntryRoute": nextEntryRoute,
|
|
|
|
"prevEntryRoute": prevEntryRoute,
|
|
|
|
"menu": "categories",
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2017-11-22 00:46:59 +01:00
|
|
|
// ShowUnreadEntry shows a single feed entry in "unread" mode.
|
2017-11-20 06:10:04 +01:00
|
|
|
func (c *Controller) ShowUnreadEntry(ctx *core.Context, request *core.Request, response *core.Response) {
|
|
|
|
user := ctx.GetLoggedUser()
|
|
|
|
sortingDirection := model.DefaultSortingDirection
|
|
|
|
|
2017-11-22 03:14:45 +01:00
|
|
|
entryID, err := request.IntegerParam("entryID")
|
2017-11-20 06:10:04 +01:00
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().BadRequest(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
|
|
|
builder.WithEntryID(entryID)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
|
|
|
|
entry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if entry == nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().NotFound()
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
args, err := c.getCommonTemplateArgs(ctx)
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithStatus(model.EntryStatusUnread)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", "<=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(sortingDirection)
|
|
|
|
nextEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithStatus(model.EntryStatusUnread)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", ">=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(model.GetOppositeDirection(sortingDirection))
|
|
|
|
prevEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
nextEntryRoute := ""
|
|
|
|
if nextEntry != nil {
|
|
|
|
nextEntryRoute = ctx.GetRoute("unreadEntry", "entryID", nextEntry.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
prevEntryRoute := ""
|
|
|
|
if prevEntry != nil {
|
|
|
|
prevEntryRoute = ctx.GetRoute("unreadEntry", "entryID", prevEntry.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
if entry.Status == model.EntryStatusUnread {
|
|
|
|
err = c.store.SetEntriesStatus(user.ID, []int64{entry.ID}, model.EntryStatusRead)
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(nil)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().Render("entry", args.Merge(tplParams{
|
2017-11-20 06:10:04 +01:00
|
|
|
"entry": entry,
|
|
|
|
"prevEntry": prevEntry,
|
|
|
|
"nextEntry": nextEntry,
|
|
|
|
"nextEntryRoute": nextEntryRoute,
|
|
|
|
"prevEntryRoute": prevEntryRoute,
|
|
|
|
"menu": "unread",
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2017-11-22 00:46:59 +01:00
|
|
|
// ShowReadEntry shows a single feed entry in "history" mode.
|
2017-11-20 06:10:04 +01:00
|
|
|
func (c *Controller) ShowReadEntry(ctx *core.Context, request *core.Request, response *core.Response) {
|
|
|
|
user := ctx.GetLoggedUser()
|
|
|
|
sortingDirection := model.DefaultSortingDirection
|
|
|
|
|
2017-11-22 03:14:45 +01:00
|
|
|
entryID, err := request.IntegerParam("entryID")
|
2017-11-20 06:10:04 +01:00
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().BadRequest(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
|
|
|
builder.WithEntryID(entryID)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
|
|
|
|
entry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if entry == nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().NotFound()
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
args, err := c.getCommonTemplateArgs(ctx)
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithStatus(model.EntryStatusRead)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", "<=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(sortingDirection)
|
|
|
|
nextEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
2017-11-22 02:40:29 +01:00
|
|
|
builder.WithoutStatus(model.EntryStatusRemoved)
|
2017-11-20 06:10:04 +01:00
|
|
|
builder.WithStatus(model.EntryStatusRead)
|
|
|
|
builder.WithCondition("e.id", "!=", entryID)
|
|
|
|
builder.WithCondition("e.published_at", ">=", entry.Date)
|
|
|
|
builder.WithOrder(model.DefaultSortingOrder)
|
|
|
|
builder.WithDirection(model.GetOppositeDirection(sortingDirection))
|
|
|
|
prevEntry, err := builder.GetEntry()
|
|
|
|
if err != nil {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().ServerError(err)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
nextEntryRoute := ""
|
|
|
|
if nextEntry != nil {
|
|
|
|
nextEntryRoute = ctx.GetRoute("readEntry", "entryID", nextEntry.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
prevEntryRoute := ""
|
|
|
|
if prevEntry != nil {
|
|
|
|
prevEntryRoute = ctx.GetRoute("readEntry", "entryID", prevEntry.ID)
|
|
|
|
}
|
|
|
|
|
2017-11-22 03:30:16 +01:00
|
|
|
response.HTML().Render("entry", args.Merge(tplParams{
|
2017-11-20 06:10:04 +01:00
|
|
|
"entry": entry,
|
|
|
|
"prevEntry": prevEntry,
|
|
|
|
"nextEntry": nextEntry,
|
|
|
|
"nextEntryRoute": nextEntryRoute,
|
|
|
|
"prevEntryRoute": prevEntryRoute,
|
|
|
|
"menu": "history",
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2017-11-22 02:40:29 +01:00
|
|
|
// UpdateEntriesStatus handles Ajax request to update the status for a list of entries.
|
2017-11-20 06:10:04 +01:00
|
|
|
func (c *Controller) UpdateEntriesStatus(ctx *core.Context, request *core.Request, response *core.Response) {
|
|
|
|
user := ctx.GetLoggedUser()
|
|
|
|
|
2017-11-22 03:14:45 +01:00
|
|
|
entryIDs, status, err := payload.DecodeEntryStatusPayload(request.Body())
|
2017-11-20 06:10:04 +01:00
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
2017-11-22 03:30:16 +01:00
|
|
|
response.JSON().BadRequest(nil)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if len(entryIDs) == 0 {
|
2017-11-22 03:30:16 +01:00
|
|
|
response.JSON().BadRequest(errors.New("The list of entryID is empty"))
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
err = c.store.SetEntriesStatus(user.ID, entryIDs, status)
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
2017-11-22 03:30:16 +01:00
|
|
|
response.JSON().ServerError(nil)
|
2017-11-20 06:10:04 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-11-22 03:30:16 +01:00
|
|
|
response.JSON().Standard("OK")
|
2017-11-20 06:10:04 +01:00
|
|
|
}
|