Sha256: 170d4c7692fb9d7449198772174d42aa06f2281596dfff2b3f9509e4795e2dc0
Contents?: true
Size: 247 Bytes
Versions: 12
Compression:
Stored size: 247 Bytes
Contents
# frozen_string_literal: true module Tanshuku class UrlsController < ActionController::API def show url = Url.find_by!(key: params[:key]) redirect_to url.url, status: :moved_permanently, allow_other_host: true end end end
Version data entries
12 entries across 12 versions & 1 rubygems