Commit ad8363c
committed
Clean up API tech debt: remove unused refactor code
Deleted unused code from incomplete refactor:
- api/src/http/ (routes, schemas, plugins) - never wired up
- api/src/services/ - only used by deleted routes
- api/src/infrastructure/container.ts, database/, external/
- api/src/core/errors/, result.ts, types/
Consolidated configuration:
- Deleted api/config.ts, now using api/src/config/env.ts
- Routes now import from src/config/env.js and src/infrastructure/supabase.js
Fixed ESM imports:
- Added .js extensions to all src/ imports for consistency
The API now has a clean structure:
- api/routes/ - working routes (use simple JSON schemas)
- api/middleware/ - auth plugin
- api/schemas/, api/utils/ - shared code
- api/src/config/ - Zod-validated env
- api/src/infrastructure/ - supabase client, logging
- api/src/core/plugins/ - error handler, request context1 parent 8a1ff45 commit ad8363c
File tree
73 files changed
+20
-7420
lines changed- api
- middleware
- routes
- src
- config
- core
- errors
- plugins
- types
- http
- plugins
- routes
- integrations
- schemas
- infrastructure
- database
- mappers
- repositories
- external
- services
- integrations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+20
-7420
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
0 commit comments