mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
15 lines
278 B
Go
15 lines
278 B
Go
|
package service
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func decodeListActivitiesRequest(ctx context.Context, r *http.Request) (interface{}, error) {
|
||
|
opt, err := listOptionsFromRequest(r)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return listActivitiesRequest{ListOptions: opt}, nil
|
||
|
}
|