export default {

	delete(deleteData)
	{

		return {
			method: 'post',
			url: '/api/frontend/v1/lv/gruppe/delete/',
			params: deleteData
		};
	},

	add(newData)
	{
		return {
			method: 'post',
			url: '/api/frontend/v1/lv/gruppe/add/',
			params: newData
		};
	},
	getByLehreinheit(lehreinheit_id)
	{
		return {
			method: 'get',
			url: '/api/frontend/v1/lv/gruppe/getByLehreinheit/' + encodeURIComponent(lehreinheit_id)
		};
	},

	deleteFromLVPlan(deleteData)
	{
		return {
			method: 'post',
			url: '/api/frontend/v1/lv/gruppe/deleteFromLVPlan/',
			params: deleteData
		};
	},


/*------------- details -------- */
	getBenutzerSearch(query)
	{
		return {
			method: 'get',
			url: `/api/frontend/v1/lv/gruppe/getBenutzerSearch?query=${encodeURIComponent(query)}`
		};
	},

	getAllSearch(query)
	{
		return {
			method: 'get',
			url: `/api/frontend/v1/lv/gruppe/getAllSearch?query=${encodeURIComponent(query)}`
		};
	},

}
