11 lines
		
	
	
		
			271 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			271 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Handlers } from "$fresh/server.ts";
 | |
| import { json } from "@lib/helpers.ts";
 | |
| import { fetchResource } from "@lib/resources.ts";
 | |
| 
 | |
| export const handler: Handlers = {
 | |
|   async GET() {
 | |
|     const movies = await fetchResource("movies");
 | |
|     return json(movies);
 | |
|   },
 | |
| };
 |