mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
fix navtabs issues and unify project lists (#7245)
* fix navtabs issues and unify project lists * move page navtab logic to component
This commit is contained in:
@@ -57,10 +57,10 @@ pub async fn get_user_projects(user_id: &str) -> crate::Result<Value> {
|
||||
|
||||
fetch_json(
|
||||
Method::GET,
|
||||
&format!("{}user/{}/projects", env!("MODRINTH_API_URL"), user_id),
|
||||
&format!("{}user/{}/projects", env!("MODRINTH_API_URL_V3"), user_id),
|
||||
None,
|
||||
None,
|
||||
Some("/v2/user/:id/projects"),
|
||||
Some("/v3/user/:id/projects"),
|
||||
&state.api_semaphore,
|
||||
&state.pool,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user