mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-09 16:52:51 +01:00
Release catalyst
This commit is contained in:
14
service/log.go
Normal file
14
service/log.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/url"
|
||||
|
||||
"github.com/SecurityBrewery/catalyst/generated/restapi/api"
|
||||
"github.com/SecurityBrewery/catalyst/generated/restapi/operations/logs"
|
||||
)
|
||||
|
||||
func (s *Service) GetLogs(ctx context.Context, params *logs.GetLogsParams) *api.Response {
|
||||
id, _ := url.QueryUnescape(params.Reference)
|
||||
return response(s.database.LogList(ctx, id))
|
||||
}
|
||||
Reference in New Issue
Block a user