Compare commits
No commits in common. "6839ae5742f3b6f61eac3c17f58536e4c66e34b8" and "acf1816b555274d4827b7069c258e1aab6bb81f1" have entirely different histories.
6839ae5742
...
acf1816b55
|
@ -1,7 +0,0 @@
|
|||
import { api } from '../internal';
|
||||
|
||||
export function avatarURL(user: FG.User, thumbnail = true) {
|
||||
return `${api.defaults?.baseURL || ''}/users/${user.userid}/avatar${
|
||||
thumbnail ? '?thumbnail' : ''
|
||||
}`;
|
||||
}
|
|
@ -54,9 +54,7 @@ export default boot(({ router }) => {
|
|||
api.interceptors.request.use((config) => {
|
||||
const store = useMainStore();
|
||||
if (store.session?.token) {
|
||||
config.headers = Object.assign(config.headers || {}, {
|
||||
Authorization: `Bearer ${store.session.token}`,
|
||||
});
|
||||
config.headers = { Authorization: 'Bearer ' + store.session.token };
|
||||
}
|
||||
// Minify JSON requests
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue