You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: maintenance_incidents_controller.rb
    path of file: ./repos/open-build-service/src/api/app/controllers/webui/projects
    
    the code of the file until where you have to start completion: module Webui
  module Projects
    class MaintenanceIncidentsController < WebuiController
      before_action :set_project, only
    
      def index
        respond_to do |format|
          format.html do
            @incidents = @project.maintenance_incidents
          end
          format.json do
            render json: MaintenanceIncidentDatatable.new(params, view_context: view_context, project: @project)
          end
        end
      end