mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 02:37:05 +00:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			357 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			357 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|   | import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage'; | ||
|  | import { ApiStatus } from 'wherehows-web/utils/api/shared'; | ||
|  | 
 | ||
|  | const getDatasetDepends = function(this: IFunctionRouteHandler, { depends }: { depends: any }) { | ||
|  |   return { | ||
|  |     depends: this.serialize(depends.all()), | ||
|  |     status: ApiStatus.OK | ||
|  |   }; | ||
|  | }; | ||
|  | 
 | ||
|  | export { getDatasetDepends }; |