update llm
This commit is contained in:
@@ -106,6 +106,15 @@ Run from `backend/`:
|
|||||||
- Prefer existing test style under `backend/tests/e2e`.
|
- Prefer existing test style under `backend/tests/e2e`.
|
||||||
- Run: `make test`
|
- Run: `make test`
|
||||||
|
|
||||||
|
### 1.8 Module-level route group (Path + Middlewares)
|
||||||
|
|
||||||
|
If you need to define a module HTTP middleware (applies to the module route group):
|
||||||
|
|
||||||
|
1) Run `atomctl gen route` first.
|
||||||
|
2) Edit `backend/app/http/<module>/routes.manual.go`:
|
||||||
|
- Update `Path()` to return the current module route group prefix (must match the prefix used in `routes.gen.go`, e.g. `/super/v1`, `/t/:tenant_code/v1`).
|
||||||
|
- Update `Middlewares()` return value: return a list like `[]any{r.middlewares.MiddlewareFunc1, r.middlewares.MiddlewareFunc2, ...}` (no `(...)`), where each item is `r.middlewares.<MiddlewareFunc>` referencing middleware definitions in `backend/app/middlewares`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 2) Add / update a DB model
|
## 2) Add / update a DB model
|
||||||
|
|||||||
Reference in New Issue
Block a user