source: frontend/src/loaders/root-loader.jsx@ badbc79

Last change on this file since badbc79 was badbc79, checked in by Luka Cheshlarov <luka.cheshlarov@…>, 20 months ago

Initial commit

  • Property mode set to 100644
File size: 280 bytes
Line 
1import {GetAllRestaurants} from "../services/restoran-service";
2import {GetAllUsers} from "../services/user-service";
3
4export const rootLoader = async () => {
5 const restorants = await GetAllRestaurants();
6 const users = await GetAllUsers()
7 return {restorants, users};
8}
Note: See TracBrowser for help on using the repository browser.