.BANCHO. Add basic api code
This commit is contained in:
		
							
								
								
									
										0
									
								
								handlers/api/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								handlers/api/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										7
									
								
								handlers/api/ping.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								handlers/api/ping.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
from common.web.api import api
 | 
			
		||||
 | 
			
		||||
class handler(api.asyncAPIHandler):
 | 
			
		||||
	@api.api
 | 
			
		||||
	@api.args("ses")
 | 
			
		||||
	def asyncGet(self):
 | 
			
		||||
		self.data["message"] = "狂乱 Hey Kids!!"
 | 
			
		||||
		Reference in New Issue
	
	Block a user