Added status to client post
This commit is contained in:
		
							parent
							
								
									f1de9c4b8a
								
							
						
					
					
						commit
						f48adef361
					
				| 
						 | 
				
			
			@ -5,7 +5,7 @@ module Api
 | 
			
		|||
 | 
			
		||||
      def create
 | 
			
		||||
        @client = Client.create(client_params)
 | 
			
		||||
        respond_with(@client, :success => true)
 | 
			
		||||
        respond_with(@client,status: :created) rescue error(409)
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      private
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue