implemented role and state based authorization
This commit is contained in:
@@ -59,7 +59,9 @@ export async function postAdminChatMessage(message: any, post_id: number) {
|
||||
}
|
||||
|
||||
export async function getAllApplications(): Promise<ApplicationFull> {
|
||||
const res = await fetch(`${addr}/application/all`)
|
||||
const res = await fetch(`${addr}/application/all`, {
|
||||
credentials: 'include',
|
||||
})
|
||||
|
||||
if (res.ok) {
|
||||
return res.json()
|
||||
|
||||
Reference in New Issue
Block a user