mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-21 20:44:18 +00:00
📔 Mark fetchData functions as deprecated
This commit is contained in:
parent
14ea7f0c1d
commit
3508fd2125
2 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ export default function GlobalServer({ children }) {
|
|||
/**
|
||||
* Fetch JSON data from the API.
|
||||
*
|
||||
* @deprecated use {@link useBackendRequest} instead
|
||||
* @param method - The method to use.
|
||||
* @param path - The path to request data at (ex. `/api/repositories`)
|
||||
* @param body - The body of the request (it will be automatically converted to JSON.
|
||||
|
|
|
@ -20,6 +20,7 @@ export default function GlobalUser({ children }) {
|
|||
*
|
||||
* Requires an user to be logged in!
|
||||
*
|
||||
* @deprecated use {@link useBackendRequest} instead
|
||||
* @param method - The HTTP method to use.
|
||||
* @param path - The path to request data at (ex. `/api/repositories`)
|
||||
* @param body - The body of the request (it will be automatically converted to JSON.
|
||||
|
|
Loading…
Reference in a new issue