mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
0794363a3c
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
30 lines
483 B
Go
30 lines
483 B
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/absmach/magistrala"
|
|
"github.com/absmach/magistrala/journal"
|
|
)
|
|
|
|
var _ magistrala.Response = (*pageRes)(nil)
|
|
|
|
type pageRes struct {
|
|
journal.JournalsPage `json:",inline"`
|
|
}
|
|
|
|
func (res pageRes) Headers() map[string]string {
|
|
return map[string]string{}
|
|
}
|
|
|
|
func (res pageRes) Code() int {
|
|
return http.StatusOK
|
|
}
|
|
|
|
func (res pageRes) Empty() bool {
|
|
return false
|
|
}
|