This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-02-14 19:18:51 +00:00
|
|
|
import AbstractService from '@/services/abstractService'
|
2022-09-06 09:36:01 +00:00
|
|
|
import SubscriptionModel from '@/models/subscription'
|
|
|
|
import type {ISubscription} from '@/modelTypes/ISubscription'
|
2021-02-14 19:18:51 +00:00
|
|
|
|
2022-07-21 16:56:31 +00:00
|
|
|
export default class SubscriptionService extends AbstractService<ISubscription> {
|
2021-02-14 19:18:51 +00:00
|
|
|
constructor() {
|
|
|
|
super({
|
|
|
|
create: '/subscriptions/{entity}/{entityId}',
|
|
|
|
delete: '/subscriptions/{entity}/{entityId}',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
modelFactory(data) {
|
|
|
|
return new SubscriptionModel(data)
|
|
|
|
}
|
|
|
|
}
|