Skip to content

Commit 0d93c91

Browse files
committed
feat: remove team/enterprise code, clean router/models/store
1 parent a20c5ba commit 0d93c91

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

internal/proto/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,4 +637,4 @@ type TeamTemplate struct {
637637
CreatedBy string `json:"created_by,omitempty"`
638638
CreatedAt int64 `json:"created_at"`
639639
UpdatedAt int64 `json:"updated_at"`
640-
}
640+
}

internal/server/api/router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ func (r *Router) setupRoutes() {
205205
r.Group(func(router chi.Router) {
206206
router.Use(rateLimitMiddleware(r.rateLimiter))
207207
router.Use(cacheControlMiddleware)
208-
router.Use(auditLogMiddleware(r.logger))
209208

210209
// Prometheus-style metrics (no auth required)
211210
router.Get("/metrics", r.handleMetrics)
@@ -417,6 +416,7 @@ func (r *Router) setupRoutes() {
417416
p.Get("/templates/{id}", r.handleGetTemplate)
418417
p.Delete("/templates/{id}", r.handleDeleteTemplate)
419418
p.Post("/templates/{id}/instantiate", r.handleInstantiateTemplate)
419+
420420
})
421421
})
422422

@@ -426,4 +426,4 @@ func (r *Router) setupRoutes() {
426426
// Stripe webhook (outside auth, verified by signature)
427427
router.Post("/webhooks/stripe", r.handleStripeWebhook)
428428
})
429-
}
429+
}

internal/server/store/sqlite.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ INSERT OR IGNORE INTO team_templates (id, workspace_id, name, description, categ
319319
return fmt.Errorf("record migration %d: %w", m.version, err)
320320
}
321321
}
322+
322323
return nil
323324
}
324325

internal/server/store/store.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,6 @@ type Store interface {
236236
GetTeamTemplate(ctx context.Context, id string) (*proto.TeamTemplate, error)
237237
ListTeamTemplates(ctx context.Context, workspaceID string) ([]*proto.TeamTemplate, error)
238238
DeleteTeamTemplate(ctx context.Context, id string) error
239-
240-
// Lifecycle.
241239
Ping(ctx context.Context) error
242240
Close() error
243241
}

0 commit comments

Comments
 (0)