mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-27 04:40:27 +00:00
location endpoints
This commit is contained in:
parent
9583847f94
commit
c7cfb4335b
10 changed files with 395 additions and 51 deletions
|
@ -7,6 +7,10 @@ type Result struct {
|
|||
Item interface{} `json:"item,omitempty"`
|
||||
}
|
||||
|
||||
type Results struct {
|
||||
Items any `json:"items"`
|
||||
}
|
||||
|
||||
// Wrap creates a Wrapper instance and adds the initial namespace and data to be returned.
|
||||
func Wrap(data interface{}) Result {
|
||||
return Result{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue