mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
10 lines
294 B
JavaScript
10 lines
294 B
JavaScript
import { http_post, http_get } from '../helpers';
|
|
|
|
export const Admin = {
|
|
login: function(password = ""){
|
|
return http_post("/admin/api/session", {password: password});
|
|
},
|
|
isAdmin: function(){
|
|
return http_get("/admin/api/session").then((res) => res.result);
|
|
}
|
|
};
|