vapid / vapid

Vapid is an intentionally simple content management system built on the idea that you can create a custom dashboard without ever leaving the HTML.
https://www.vapid.com
MIT License
1.52k stars 67 forks source link

Enabling custom endpoints / Vapid as a middleware #35

Closed patrixr closed 5 years ago

patrixr commented 6 years ago

I've been fiddling with vapid, and trying to figure out if I can add site-specific endpoints to my project.

Given that Vapid wraps a Koa app, could that be exposed in order for us to add our own middlewares ? Something along the lines of : e.g

let Vapid = require("vapid-cli/lib/vapid");
let vapid = new Vapid(__dirname);

let app = vapid.getServer();
app.use(myMiddleware);

vapid.start();
stale[bot] commented 5 years ago

This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.