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;