Add support for running CodeOcean under a subpath

* Also refactor (JavaScript) routes
This commit is contained in:
Sebastian Serth
2021-07-06 17:02:12 +02:00
parent 7914608efe
commit 237c225732
14 changed files with 40 additions and 28 deletions

View File

@ -51,7 +51,7 @@ $(document).on('turbolinks:load', function() {
} else {
var jqxhr = $.ajax({
dataType: 'json',
url: '/admin/dashboard',
url: Routes.admin_dashboard_path(),
method: 'GET'
});
jqxhr.done(function(response) {