Admin Panel Startseite funktioniert jetzt

This commit is contained in:
R40fendt
2026-01-03 21:30:37 +01:00
parent a964ef4f0f
commit b94e84ff62
3 changed files with 35 additions and 7 deletions

16
src/adminpanellib.ts Normal file
View File

@@ -0,0 +1,16 @@
import RitzenbergenLib from "./ritzenbergenlib";
class AdminPanelLib {
static async getUserInfo(token:string){
const url=new URL(RitzenbergenLib.RitzenbergenLib.api("/admin/userinfo.php"));
return fetch(url.toString(), {
headers: {
"Authorization": "Bearer "+token
},
})
.then((response)=>response.json());
}
}
export default {
AdminPanelLib
}