tnantoka/blog

View on GitHub
app/controllers/links_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class LinksController < ApplicationController
  before_action :authenticate_user!

  def create
    url = params[:url]
    title = Link.fetch_title(url)
    render json: {
      url: url,
      title: title
    }
  end
end