mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-30 07:46:28 +00:00
23 lines
482 B
JavaScript
23 lines
482 B
JavaScript
|
/**
|
||
|
* Virtual directories interface
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
ComunicWeb.components.virtualDirectory.interface = {
|
||
|
|
||
|
/**
|
||
|
* Find the user / group related to a virtual directory
|
||
|
*
|
||
|
* @param {String} directory The directory to find
|
||
|
* @param {Function} callback
|
||
|
*/
|
||
|
find: function(directory, callback){
|
||
|
var apiURI = "virtualDirectory/find";
|
||
|
var params = {
|
||
|
directory: directory
|
||
|
};
|
||
|
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||
|
},
|
||
|
|
||
|
}
|