mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:48:23 +00:00
Fixes bugs, simplifies code, more default files. General idea, more is more here as it's easier to just delete things than reading and passing all the options.
16 lines
313 B
Plaintext
16 lines
313 B
Plaintext
module <%= classified_name %>
|
|
class ActionsController < ::ApplicationController
|
|
requires_plugin <%= classified_name %>
|
|
|
|
before_action :ensure_logged_in
|
|
|
|
def index
|
|
render_json_dump({ actions: [] })
|
|
end
|
|
|
|
def show
|
|
render_json_dump({ action: { id: params[:id] } })
|
|
end
|
|
end
|
|
end
|