From c2b7aeb9dfa74af91d11d7d7b72211f176f84f05 Mon Sep 17 00:00:00 2001 From: cntoplolicon Date: Mon, 2 Nov 2015 18:29:42 +0800 Subject: [PATCH] protected apk upload --- controllers/release.rb | 2 +- public/js/components/androidRelease.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/release.rb b/controllers/release.rb index e110d92..fd8b2d5 100644 --- a/controllers/release.rb +++ b/controllers/release.rb @@ -10,7 +10,7 @@ end end -post '/app_release/android' do +post '/admin/app_release/android' do @app_release = AppRelease.first_or_initialize @app_release.message = params[:message] diff --git a/public/js/components/androidRelease.jsx b/public/js/components/androidRelease.jsx index 71517b7..a4ece7f 100644 --- a/public/js/components/androidRelease.jsx +++ b/public/js/components/androidRelease.jsx @@ -32,7 +32,7 @@ module.exports = React.createClass({ }, submitNewRelease: function() { - var url = '/app_release/android' + var url = '/admin/app_release/android' var data = new FormData() var message = this.refs.message.getValue()