replace manual json headers with laravel response()->json()

better Carbon dependency
rename admin.nodes.configuration-token route
style fixes
This commit is contained in:
Jakob Schrettenbrunner 2017-01-08 15:21:02 +01:00
parent 67bb8fe230
commit 9f2ca17ea4
5 changed files with 8 additions and 11 deletions

View file

@ -502,7 +502,7 @@ $(document).ready(function () {
});
$('#configTokenBtn').on('click', function (event) {
$.getJSON('{{ route('admin.nodes.configurationtoken', $node->id) }}')
$.getJSON('{{ route('admin.nodes.configuration-token', $node->id) }}')
.done(function (data) {
swal({
type: 'success',