mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
parent
10de50416b
commit
6f9da5f7df
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ Contains the logic for each route, including calling the appropriate service fun
|
||||||
- Create a separate controller file for each route to handle the request/response logic.
|
- Create a separate controller file for each route to handle the request/response logic.
|
||||||
- Name controller files using the PascalCase convention and append "Controller" to the file name (e.g., UserController.js).
|
- Name controller files using the PascalCase convention and append "Controller" to the file name (e.g., UserController.js).
|
||||||
- Use controller methods to encapsulate logic related to the route handling.
|
- Use controller methods to encapsulate logic related to the route handling.
|
||||||
- eep controllers thin by delegating complex operations to service or model files.
|
- Keep controllers thin by delegating complex operations to service or model files.
|
||||||
|
|
||||||
#### Services
|
#### Services
|
||||||
|
|
||||||
|
|
@ -101,4 +101,4 @@ Use the conventions found in the `data-provider` directory for handling data ser
|
||||||
### State Management
|
### State Management
|
||||||
|
|
||||||
Use [Recoil](https://recoiljs.org/) for state management, but *DO NOT pollute the global state with unnecessary data*. Instead, use local state or props for data that is only used within a component or passed down from parent to child.
|
Use [Recoil](https://recoiljs.org/) for state management, but *DO NOT pollute the global state with unnecessary data*. Instead, use local state or props for data that is only used within a component or passed down from parent to child.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue