mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	* initial public explorer API endpoint * public API endpoint * cleanup recipe page * wip: init explorer page * use public URLs for shared recipes * refactor private share tokens to use shared page
		
			
				
	
	
		
			19 lines
		
	
	
		
			533 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			533 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { ValidatorsApi } from "./public/validators";
 | |
| import { ExploreApi } from "./public/explore";
 | |
| import { SharedApi } from "./public/shared";
 | |
| import { ApiRequestInstance } from "~/types/api";
 | |
| 
 | |
| export class PublicApi {
 | |
|   public validators: ValidatorsApi;
 | |
|   public explore: ExploreApi;
 | |
|   public shared: SharedApi;
 | |
| 
 | |
|   constructor(requests: ApiRequestInstance) {
 | |
|     this.validators = new ValidatorsApi(requests);
 | |
|     this.explore = new ExploreApi(requests);
 | |
|     this.shared = new SharedApi(requests);
 | |
| 
 | |
|     Object.freeze(this);
 | |
|   }
 | |
| }
 |