Skip to content

Commit 5b5bd4f

Browse files
committed
Bug fix and updated build file
1 parent 9a1f730 commit 5b5bd4f

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

frontend/src/components/Parameters.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ export default {
137137
let endpoint = this.json.endpoint
138138
139139
each(this.routeParams, (param) => {
140-
endpoint = endpoint.replace('{'+param+'}', this.params[param])
140+
let suffix = param.required ? '' : '?'
141+
let routeName = param.endpoint+suffix
142+
143+
endpoint = endpoint.replace('{'+routeName+'}', this.params[routeName])
141144
})
142145
143146
return this.config.api_url+endpoint

frontend/src/components/Response.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import { success } from '@/utils/toast'
5151
export default {
5252
props: {
5353
value: {
54-
type: Object,
54+
type: [Object, String],
5555
default () {
5656
return {}
5757
}

public/vendor/apidocs/js/app.ef6f679d.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/vendor/apidocs/js/app.ef6f679d.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><meta name=api_url content="{{ config('apidocs.url') }}"><meta name=api_path content="{{ config('apidocs.path') }}"><link rel=icon href=/vendor/apidocs/favicon.ico><title>API Docs</title><link href=/vendor/apidocs/css/app.14d989bf.css rel=preload as=style><link href=/vendor/apidocs/css/chunk-vendors.e7214169.css rel=preload as=style><link href=/vendor/apidocs/js/app.7545017b.js rel=preload as=script><link href=/vendor/apidocs/js/chunk-vendors.7bc6d880.js rel=preload as=script><link href=/vendor/apidocs/css/chunk-vendors.e7214169.css rel=stylesheet><link href=/vendor/apidocs/css/app.14d989bf.css rel=stylesheet></head><body><noscript><strong>We're sorry but frontend doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vendor/apidocs/js/chunk-vendors.7bc6d880.js></script><script src=/vendor/apidocs/js/app.7545017b.js></script></body></html>
1+
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><meta name=api_url content="{{ config('apidocs.url') }}"><meta name=api_path content="{{ config('apidocs.path') }}"><link rel=icon href=/vendor/apidocs/favicon.ico><title>API Docs</title><link href=/vendor/apidocs/css/app.14d989bf.css rel=preload as=style><link href=/vendor/apidocs/css/chunk-vendors.e7214169.css rel=preload as=style><link href=/vendor/apidocs/js/app.ef6f679d.js rel=preload as=script><link href=/vendor/apidocs/js/chunk-vendors.7bc6d880.js rel=preload as=script><link href=/vendor/apidocs/css/chunk-vendors.e7214169.css rel=stylesheet><link href=/vendor/apidocs/css/app.14d989bf.css rel=stylesheet></head><body><noscript><strong>We're sorry but frontend doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vendor/apidocs/js/chunk-vendors.7bc6d880.js></script><script src=/vendor/apidocs/js/app.ef6f679d.js></script></body></html>

0 commit comments

Comments
 (0)