so I have been working on vue and jsorm/spraypaint for some time and i am stuck with, like how to make a fetch request instead of Post and send some metadata also with it.
like send data to customer/:id, where the id would be fetched from the url and send as meta data, while secrets from the URL to be send as normal data.
import { ApplicationRecord } from './application_record';
export const Post = ApplicationRecord.extend({
static: {
jsonapiType: 'posts/:id'
},
Hello,
so I have been working on vue and jsorm/spraypaint for some time and i am stuck with, like how to make a fetch request instead of Post and send some metadata also with it.
like send data to customer/:id, where the id would be fetched from the url and send as meta data, while secrets from the URL to be send as normal data.
import { ApplicationRecord } from './application_record';
export const Post = ApplicationRecord.extend({
static: {
jsonapiType: 'posts/:id'
},
})