Fix "getAllPlanets" endpoint not returning code and message
This commit is contained in:
		
							parent
							
								
									2304ff48a3
								
							
						
					
					
						commit
						44fdb88ab2
					
				| 
						 | 
				
			
			@ -17,6 +17,10 @@ export const GET: APIRoute = async ({ request }) => {
 | 
			
		|||
    });
 | 
			
		||||
 | 
			
		||||
    return new Response(
 | 
			
		||||
        JSON.stringify(response)
 | 
			
		||||
        JSON.stringify({
 | 
			
		||||
            code: 200,
 | 
			
		||||
            message: "OK",
 | 
			
		||||
            data: response
 | 
			
		||||
        })
 | 
			
		||||
    );
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue