~bigbes/lethe

ref: 80b1c095e36243a2e9035fc2367f181954a8af5b lethe/internal/domain/ingest/handler.go -rw-r--r-- 719 bytes
80b1c095 — Eugene Blikh feat(auth): forward-auth + OIDC bearer middleware with shared allowlist a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Phase-5 stub. Replaced by real implementation in Phase 7.
//
// Mount is a no-op so the /api/v1 group registers no ingest routes yet;
// Server.Init still wires it in so the full router topology compiles.
package ingest

import (
	"context"

	"github.com/go-chi/chi/v5"
)

// Handler is a no-op steward service. Phase 7 supplies the real ingest
// pipeline (NDJSON streaming, validation, chunked commit).
type Handler struct{}

// Init satisfies the steward Service contract.
func (h *Handler) Init(_ context.Context) error { return nil }

// Mount registers no routes. Phase 7 replaces this with the ingest endpoints
// rooted at the /api/v1 group passed in by Server.Init.
func (h *Handler) Mount(_ chi.Router) {}