Skip to content

Commit

Permalink
use prototype-admin path for clear session
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanman committed Mar 3, 2016
1 parent 0c82bef commit d1209e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{% block footer_support_links %}
<ul>
<li>
<a href="/_/clear-data">Clear data</a>
<a href="/prototype-admin/clear-data">Clear data</a>
</li>
</ul>
{% endblock %}
File renamed without changes.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ if (typeof(routes) != "function"){
app.use("/", routes);
}

app.get('/_/clear-data', function(req, res){
app.get('/prototype-admin/clear-data', function(req, res){

req.session.data = {};
req.session.destroy();

res.render("_/clear-data");
res.render("prototype-admin/clear-data");

});

Expand Down

0 comments on commit d1209e8

Please sign in to comment.