mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:52:30 -05:00 
			
		
		
		
	[feature] Implement /api/v2/instance endpoint (#1409)
		
	* interim: start adding /api/v2/instance * finish up
This commit is contained in:
		
					parent
					
						
							
								4ee4cd2da1
							
						
					
				
			
			
				commit
				
					
						382512a5a6
					
				
			
		
					 109 changed files with 1660 additions and 944 deletions
				
			
		|  | @ -30,12 +30,12 @@ import ( | |||
| // ListsGETHandler returns a list of lists created by/for the authed account | ||||
| func (m *Module) ListsGETHandler(c *gin.Context) { | ||||
| 	if _, err := oauth.Authed(c, true, true, true, true); err != nil { | ||||
| 		apiutil.ErrorHandler(c, gtserror.NewErrorUnauthorized(err, err.Error()), m.processor.InstanceGet) | ||||
| 		apiutil.ErrorHandler(c, gtserror.NewErrorUnauthorized(err, err.Error()), m.processor.InstanceGetV1) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	if _, err := apiutil.NegotiateAccept(c, apiutil.JSONAcceptHeaders...); err != nil { | ||||
| 		apiutil.ErrorHandler(c, gtserror.NewErrorNotAcceptable(err, err.Error()), m.processor.InstanceGet) | ||||
| 		apiutil.ErrorHandler(c, gtserror.NewErrorNotAcceptable(err, err.Error()), m.processor.InstanceGetV1) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue