gunsmith-common 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/shared/services/firearm-optic.service.mjs +4 -1
- package/fesm2015/gunsmith-common.mjs +3 -0
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +3 -0
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.6.tgz +0 -0
- package/package.json +1 -1
- package/shared/services/firearm-optic.service.d.ts +1 -0
- package/gunsmith-common-2.3.5.tgz +0 -0
|
@@ -1780,6 +1780,9 @@ class FirearmOpticService extends BaseService {
|
|
|
1780
1780
|
this.env = env;
|
|
1781
1781
|
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
|
|
1782
1782
|
}
|
|
1783
|
+
createCollection(firearmOptics, firearmId) {
|
|
1784
|
+
return this.http.post(`${this.env.baseUrl}api/firearms/${firearmId}/optics/collection`, firearmOptics);
|
|
1785
|
+
}
|
|
1783
1786
|
}
|
|
1784
1787
|
FirearmOpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1785
1788
|
FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
|