mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(admin)!: move the admin api to rest and fix its defects (#2515)
This commit is contained in:
1 parent
a70924d4b0
commit
7f8f09ee51
143 files changed
+15238
-12790
No files matched your search
@@ -135,7 +135,7 @@ async fn fetch_admin_user(
|
||||
config: &crate::config::AdminConfig,
|
||||
session: &Session,
|
||||
) -> AdminFetchResult {
|
||||
let url = format!("{}/admin/users/me", config.api_endpoint);
|
||||
let url = format!("{}/admin/users/@me", config.api_endpoint);
|
||||
let response =
|
||||
match crate::api::client::with_proxy_client_ip_header(http_client.get(&url), config)
|
||||
.header("Authorization", format!("Bearer {}", session.access_token))
|
||||
|
||||
Reference in new issue
Block a user