Module '@koa/cors' as import syntax (#4060)
This commit is contained in:
		
							parent
							
								
									723d5baed5
								
							
						
					
					
						commit
						2dc4696b0a
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ import * as Koa from 'koa';
 | 
			
		|||
import * as Router from 'koa-router';
 | 
			
		||||
import * as multer from 'koa-multer';
 | 
			
		||||
import * as bodyParser from 'koa-bodyparser';
 | 
			
		||||
const cors = require('@koa/cors');
 | 
			
		||||
import * as cors from '@koa/cors';
 | 
			
		||||
 | 
			
		||||
import endpoints from './endpoints';
 | 
			
		||||
import handler from './api-handler';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue