From f0f6bc509918633f00e656cba8547d4d8dbd6cb9 Mon Sep 17 00:00:00 2001 From: Willyams Yujra Date: Wed, 20 Dec 2023 08:23:23 -0400 Subject: [PATCH] + 1.0.8 --- package.json | 4 ++-- src/index.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8bfe42c..d88a7fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-api-routes", - "version": "1.0.7", + "version": "1.0.8", "type": "module", "description": "A Vite.js plugin that creates API routes by mapping the directory structure, similar to Next.js API Routes. This plugin enhances the functionality for backend development using Vite.", "keywords": [ @@ -57,4 +57,4 @@ "typescript": "^5.3.3", "vite": "^2.0.0" } -} +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 47119c8..16dda50 100644 --- a/src/index.ts +++ b/src/index.ts @@ -77,4 +77,8 @@ export const pluginAPIRoutes = (opts: UserConfig = {}) => { }); }; +export const pluginAPI = pluginAPIRoutes; + +export const createAPI = pluginAPIRoutes; + export default pluginAPIRoutes;