mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	
		
			
	
	
		
			15 lines
		
	
	
		
			328 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			328 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								import { BaseAPI } from "../_base";
							 | 
						||
| 
								 | 
							
								import { MealieAnalytics } from "~/types/api-types/analytics";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const prefix = "/api";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const routes = {
							 | 
						||
| 
								 | 
							
								  base: `${prefix}/admin/analytics`,
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export class AdminAnalyticsApi extends BaseAPI {
							 | 
						||
| 
								 | 
							
								  async getAnalytics() {
							 | 
						||
| 
								 | 
							
								    return await this.requests.get<MealieAnalytics>(routes.base);
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |