update
This commit is contained in:
		
							
								
								
									
										13
									
								
								public/test-import.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								public/test-import.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
export const test = () => {
 | 
			
		||||
  return new Date().toDateString();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const app = useContextKey('app')
 | 
			
		||||
 | 
			
		||||
app.route({
 | 
			
		||||
  path: 'test-import',
 | 
			
		||||
  description: 'test dynamic import module',
 | 
			
		||||
}).define(async(ctx)=>{
 | 
			
		||||
 | 
			
		||||
  ctx.body = 'test-import'
 | 
			
		||||
}).addTo(app);
 | 
			
		||||
		Reference in New Issue
	
	Block a user