This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Api | |
| module V0 | |
| class LinksController < ApplicationController | |
| # THIS | |
| before_action :set_headers | |
| def show | |
| @link = Link.find(params[:id]) | |
| render json: @link | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import AWS from 'aws-sdk/global' | |
| import eventEmitter from 'event-emitter' | |
| import differenceInMilliseconds from 'date-fns/difference_in_milliseconds' | |
| import minDate from 'date-fns/min' | |
| // Set this to match your setup | |
| const env = { | |
| awsRegion: XXXX, | |
| identityPoolId: XXXX, | |
| userPoolId: XXXX, |
OlderNewer