123456789101112131415161718192021 |
- class HttpLogsController < ApplicationController
- prepend_before_action :authenticate_and_authorize!
-
- def index
- list = if params[:facility]
- HttpLog.where(facility: params[:facility]).reorder(created_at: :desc).limit(params[:limit] || 50)
- else
- HttpLog.reorder(created_at: :desc).limit(params[:limit] || 50)
- end
- model_index_render_result(list)
- end
-
- def create
- model_create_render(HttpLog, params)
- end
- end
|