Merge remote-tracking branch 'origin/main' into feature/184

This commit is contained in:
2025-12-28 21:28:50 +09:00
4 changed files with 120 additions and 42 deletions
@@ -13,6 +13,22 @@ class WikiPagesController < ApplicationController
render_wiki_page_or_404 WikiPage.find_by(title: params[:title])
end
def exists
if WikiPage.exists?(params[:id])
head :no_content
else
head :not_found
end
end
def exists_by_title
if WikiPage.exists?(title: params[:title])
head :no_content
else
head :not_found
end
end
def diff
id = params[:id]
from = params[:from]