13 lines
		
	
	
		
			247 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			247 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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); |