nidus-sync/sync/radar.go

22 lines
523 B
Go
Raw Normal View History

2026-02-16 19:14:58 +00:00
package sync
import (
2026-02-17 22:50:16 +00:00
"context"
"net/http"
2026-02-16 19:14:58 +00:00
"github.com/Gleipnir-Technology/nidus-sync/html"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
2026-02-16 19:14:58 +00:00
)
type contentRadar struct {
Organization platform.Organization
2026-02-16 19:14:58 +00:00
}
func getRadar(ctx context.Context, r *http.Request, user platform.User) (*html.Response[contentRadar], *nhttp.ErrorWithStatus) {
2026-02-16 19:14:58 +00:00
data := contentRadar{
Organization: user.Organization,
2026-02-16 19:14:58 +00:00
}
return html.NewResponse("sync/radar.html", data), nil
2026-02-16 19:14:58 +00:00
}