A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
monograph: fix monograph version endpoints cors
dyw77099e50ddad636
diff --git a/apps/monograph/app/routes/api.version.ts b/apps/monograph/app/routes/api.version.tsindex 3380b4762..479e7f0a5 100644--- a/apps/monograph/app/routes/api.version.ts+++ b/apps/monograph/app/routes/api.version.ts@@ -17,12 +17,15 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/+import { json, LoaderFunctionArgs } from "@remix-run/node";+import { cors } from "remix-utils/cors";import { COMPATIBILITY_VERSION, INSTANCE_NAME } from "../utils/env";-export async function loader() {- return Response.json({+export async function loader({ request }: LoaderFunctionArgs) {+ const response = json({version: COMPATIBILITY_VERSION,id: "monograph",instance: INSTANCE_NAME});+ return cors(request, response);}