mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 19:32:27 +08:00
feature (admin): admin console
This commit is contained in:
19
client/model/log.js
Normal file
19
client/model/log.js
Normal file
@ -0,0 +1,19 @@
|
||||
import { http_get } from '../helpers/';
|
||||
|
||||
class LogManager{
|
||||
constructor(){}
|
||||
|
||||
get(maxSize = -1){
|
||||
let url = this.url();
|
||||
if(maxSize > 0){
|
||||
url += "?maxSize="+maxSize
|
||||
}
|
||||
return http_get(url, 'text');
|
||||
}
|
||||
|
||||
url(){
|
||||
return "/admin/api/log"
|
||||
}
|
||||
}
|
||||
|
||||
export const Log = new LogManager();
|
||||
Reference in New Issue
Block a user