Skip to content

Commit

Permalink
bugfix new APi syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Metrakit authored Dec 9, 2016
1 parent 2a370e5 commit 6ea5284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = (context) => {

if (query_parts.length === 3) {
return _.forEach(tpls, (url, name) => {
url = _.replace(url, 'templates/', '');
url = _.replace(url, 'api/templates/', '');
url += '/' + encodeURIComponent(query_parts[0]) + '/' + encodeURIComponent(query_parts[1]) + '.jpg';
res.add({
id: url,
Expand Down

0 comments on commit 6ea5284

Please sign in to comment.