Skip to content

Commit

Permalink
rename route to fix 404 on routes cached
Browse files Browse the repository at this point in the history
  • Loading branch information
theofanisv committed Feb 25, 2023
1 parent dc92aec commit a0aae8c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/DetailField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default {
async getPivotFields(resource) {
await Nova.request()
.get(
`/nova-api/armincms/${this.resourceName}/pivot-fields/${this.field.resourceName}`,
`/nova-vendor/armincms/${this.resourceName}/pivot-fields/${this.field.resourceName}`,
{
params: {
resourceId: this.resourceId,
Expand Down
8 changes: 4 additions & 4 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default {
validateRequest(resource) {
return Nova.request().post(
`/nova-api/armincms/${this.resourceName}/pivots-validate/${this.field.resourceName}`,
`/nova-vendor/armincms/${this.resourceName}/pivots-validate/${this.field.resourceName}`,
this.attachmentFormData,
{
params: {
Expand Down Expand Up @@ -391,7 +391,7 @@ export default {
getAvailableResources() {
Nova.request()
.get(
`/nova-api/armincms/${this.resourceName}/attachable/${this.field.resourceName}`,
`/nova-vendor/armincms/${this.resourceName}/attachable/${this.field.resourceName}`,
{
params: {
search: this.search,
Expand All @@ -410,7 +410,7 @@ export default {
getAttachedResources() {
Nova.request()
.get(
`/nova-api/armincms/${this.resourceName}/attached/${this.field.resourceName}`,
`/nova-vendor/armincms/${this.resourceName}/attached/${this.field.resourceName}`,
{
params: {
field: this.field.attribute,
Expand All @@ -435,7 +435,7 @@ export default {
async getPivotFields(resource) {
await Nova.request()
.get(
`/nova-api/armincms/${this.resourceName}/pivot-fields/${this.field.resourceName}`,
`/nova-vendor/armincms/${this.resourceName}/pivot-fields/${this.field.resourceName}`,
{
params: {
field: this.field.attribute,
Expand Down
2 changes: 1 addition & 1 deletion src/ManyToManyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function routes()
}

\Route::middleware(['nova'])
->prefix('nova-api/armincms')
->prefix('nova-vendor/armincms')
->namespace(__NAMESPACE__.'\\Http\\Controllers')
->group(__DIR__.'/../routes/api.php');
}
Expand Down

0 comments on commit a0aae8c

Please sign in to comment.