1.4.3 • Published 1 year ago
@piktorika/vink v1.4.3
Vink
A library that allows users to generate API routes from an specified file system.
Demos
Installation
npm
npm install @piktorika/vink
pnpm
pnpm install @piktorika/vink
Usage
import express from "express";
import {loadRoutes} from "@piktorika/vink";
const app = express();
const applicationPort = 3001;
// your initial express setup
const loadedRoutes = await loadRoutes("./relative-path-to-routes-folder");
app.use("/", loadedRoutes);
app.start(applicationPort);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.