mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +02:00
Typo
This commit is contained in:
parent
ae923e7df1
commit
411f64c359
1 changed files with 1 additions and 2 deletions
|
@ -97,7 +97,7 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// Get returns requested reusable content block.
|
// Get returns requested reusable content block.
|
||||||
func (h *Handler) Get(w http.ResponseWriter, r *http.Request) {
|
func (h *Handler) Get(w http.ResponseWriter, r *http.Request) {
|
||||||
method := "block.add"
|
method := "block.get"
|
||||||
ctx := domain.GetRequestContext(r)
|
ctx := domain.GetRequestContext(r)
|
||||||
|
|
||||||
blockID := request.Param(r, "blockID")
|
blockID := request.Param(r, "blockID")
|
||||||
|
@ -135,7 +135,6 @@ func (h *Handler) GetBySpace(w http.ResponseWriter, r *http.Request) {
|
||||||
if len(b) == 0 {
|
if len(b) == 0 {
|
||||||
b = []block.Block{}
|
b = []block.Block{}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
response.WriteServerError(w, method, err)
|
response.WriteServerError(w, method, err)
|
||||||
h.Runtime.Log.Error(method, err)
|
h.Runtime.Log.Error(method, err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue