mmb/meme_captain_web

View on GitHub
app/assets/javascripts/my.js.coffee

Summary

Maintainability
Test Coverage
@api_token_init = ->
  $('.api-token-button').click ->
    $.post('/api_token', (data) ->
      $('.api-token').text(data.token))

$(document).ready ->
  api_token_init()