Skip to content

Commit

Permalink
Change API token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Zoldak committed Mar 27, 2013
1 parent a9e8db4 commit f3e7186
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'dashing'

configure do
set :auth_token, 'YOUR_AUTH_TOKEN'
set :auth_token, 'EDX_RUL3Z'

helpers do
def protected!
Expand Down
5 changes: 5 additions & 0 deletions dashboards/edx.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<% content_for(:title) { "edX Engineering" } %>
<div class="gridster">
<ul>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-view="Image" data-image="/logo.png"></div>
</li>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="my_widget" data-view="Text"></div>
</li>
</ul>
<center><div style="font-size: 12px">curl -d '{ "auth_token": "EDX_RUL3Z", "text": "Hey, Look what I can do!" }' \http://<%=request.host%>:<%=request.port%>/widgets/my_widget</div></center>
</div>

0 comments on commit f3e7186

Please sign in to comment.