From f386ee8254d0c04d20986a0b99bf62224177d7cf Mon Sep 17 00:00:00 2001 From: hay-kot Date: Mon, 29 Mar 2021 15:07:56 -0800 Subject: [PATCH] jsconfig --- frontend/jsconfig.json | 3 ++- frontend/src/api/index.js | 3 +++ frontend/src/api/recipe.js | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/jsconfig.json b/frontend/jsconfig.json index abe04df57..0486e3bb3 100644 --- a/frontend/jsconfig.json +++ b/frontend/jsconfig.json @@ -4,5 +4,6 @@ "paths": { "@/*": ["./src/*"] } - } + }, + "exclude": ["node_modules", "dist"] } diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js index 31a9bac8e..fc224be9b 100644 --- a/frontend/src/api/index.js +++ b/frontend/src/api/index.js @@ -12,6 +12,9 @@ import signUps from "./signUps"; import groups from "./groups"; import siteSettings from "./siteSettings"; +/** + * The main object namespace for interacting with the backend database + */ export const api = { recipes: recipe, siteSettings: siteSettings, diff --git a/frontend/src/api/recipe.js b/frontend/src/api/recipe.js index ea81e8910..cdaed9f23 100644 --- a/frontend/src/api/recipe.js +++ b/frontend/src/api/recipe.js @@ -21,8 +21,8 @@ const recipeURLs = { export default { /** * Create a Recipe by URL - * @param {String} recipeURL - * @returns {String} Recipe Slug + * @param {string} recipeURL + * @returns {string} Recipe Slug */ async createByURL(recipeURL) { let response = await apiReq.post(recipeURLs.createByURL, {