mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-03 19:36:20 +00:00 
			
		
		
		
	Consistency with other API endpoints (#8986)
This commit is contained in:
		
							parent
							
								
									a0a4131b38
								
							
						
					
					
						commit
						0850f81884
					
				@ -25,7 +25,9 @@ module.exports = {
 | 
			
		||||
    const adminStore = await utils.getAdminStore();
 | 
			
		||||
    const { providers: providersOptions } = await adminStore.get({ key: 'auth' });
 | 
			
		||||
 | 
			
		||||
    ctx.body = toProviderLoginOptionsDTO(providersOptions);
 | 
			
		||||
    ctx.body = {
 | 
			
		||||
      data: toProviderLoginOptionsDTO(providersOptions),
 | 
			
		||||
    };
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  async updateProviderLoginOptions(ctx) {
 | 
			
		||||
@ -45,7 +47,9 @@ module.exports = {
 | 
			
		||||
 | 
			
		||||
    await adminStore.set({ key: 'auth', value: newAuthOptions });
 | 
			
		||||
 | 
			
		||||
    ctx.body = newAuthOptions.providers;
 | 
			
		||||
    ctx.body = {
 | 
			
		||||
      data: toProviderLoginOptionsDTO(newAuthOptions.providers),
 | 
			
		||||
    };
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  providerLogin: (ctx, next) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user