UNPKG

@zhiguang-gastrofy/capi

Version:

comany apis, including Northfork api and Gastrofy api

27 lines 996 B
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); var http_service_1 = require("./http.service"); var GastrofyService = /** @class */ (function () { function GastrofyService(config) { this._GFHttp = new http_service_1.HttpService(__assign({ host: 'https://www.gastrofy.se/api', }, config || {})); } GastrofyService.prototype.getRecipeMeta = function (ids) { return this._GFHttp.get('recipe/' + ids + '/meta'); }; return GastrofyService; }()); exports.GastrofyService = GastrofyService; //# sourceMappingURL=gastrofy.service.js.map