You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							14 lines
						
					
					
						
							498 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							14 lines
						
					
					
						
							498 B
						
					
					
				| 'use strict'; | |
| 
 | |
| const auth = require('../../controllers/auth'); | |
| 
 | |
| module.exports = function (app, router, opts) { | |
|     app.fs.api.logAttr['POST/login'] = { content: '登录', visible: true }; | |
|     router.post('/login', auth.login); | |
| 
 | |
|     app.fs.api.logAttr['POST/validate/phone'] = { content: '发送验证码', visible: true }; | |
|     router.post('/validate/phone', auth.varfiyCode); | |
| 
 | |
|     app.fs.api.logAttr['PUT/logout'] = { content: '登出', visible: false }; | |
|     router.put('/logout', auth.logout); | |
| }; |