Skip to content

Instantly share code, notes, and snippets.

@evantahler
Last active May 27, 2016 22:54
Show Gist options
  • Save evantahler/948bd05d94aaaf5afa7128ed40da6c27 to your computer and use it in GitHub Desktop.
Save evantahler/948bd05d94aaaf5afa7128ed40da6c27 to your computer and use it in GitHub Desktop.
apple-app-site-association.js
exports.action = {
name: 'apple-app-site-association',
description: 'I return the wacky payload apple needs',
run: function(api, data, next){
data.connection.sendFile('apple-app-site-association/' + api.env + '.json');
data.toRender = false;
next();
}
};
exports.default = {
routes: function(api){
return {
all: [
{ path: '/apple-app-site-association', action: 'apple-app-site-association' }
]
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment