mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 19:37:29 -05:00
29 lines
575 B
JavaScript
29 lines
575 B
JavaScript
/**
|
|
Data model for representing an export
|
|
|
|
@class ExportCsv
|
|
@extends Discourse.Model
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.ExportCsv = Discourse.Model.extend({});
|
|
|
|
Discourse.ExportCsv.reopenClass({
|
|
/**
|
|
Exports user list
|
|
|
|
@method export_user_list
|
|
**/
|
|
exportUserList: function() {
|
|
return Discourse.ajax("/admin/export_csv/users.json");
|
|
},
|
|
|
|
/**
|
|
Exports screened IPs list
|
|
|
|
@method export_screened_ips_list
|
|
**/
|
|
exportScreenedIpsList: function() {
|
|
return Discourse.ajax("/admin/export_csv/screened_ips.json");
|
|
}
|
|
});
|