Skip to content
Snippets Groups Projects
Commit b649e751 authored by lfr20's avatar lfr20
Browse files

Add the comon search

parent b582f7ec
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!40merge admin into develop,!37Merge sistema_admin into Update_Admin_System
......@@ -21,4 +21,9 @@ import { apiUrl } from '../env';
export function BuildFilter(typeOfFilter, type, filter) {
const api = `${apiUrl}/${type}?filter={"${typeOfFilter}": "${filter}"}&page=0&range=[0,9]&results_per_page=10&sort=["id","DESC"]`
return (api)
}
export function WithoutFilter(type , page){
const api = `${apiUrl}/${type}?filter={}&page=${page}&range=[0,9]&results_per_page=10&sort=["id","DESC"]`
return (api)
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment