mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			543 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			543 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from flask import Blueprint
 | |
| 
 | |
| from libs.external_api import ExternalApi
 | |
| 
 | |
| from .files import FileApi
 | |
| from .remote_files import RemoteFileInfoApi, RemoteFileUploadApi
 | |
| 
 | |
| bp = Blueprint("web", __name__, url_prefix="/api")
 | |
| api = ExternalApi(bp)
 | |
| 
 | |
| # Files
 | |
| api.add_resource(FileApi, "/files/upload")
 | |
| 
 | |
| # Remote files
 | |
| api.add_resource(RemoteFileInfoApi, "/remote-files/<path:url>")
 | |
| api.add_resource(RemoteFileUploadApi, "/remote-files/upload")
 | |
| 
 | |
| from . import app, audio, completion, conversation, feature, message, passport, saved_message, site, workflow
 | 
