Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
ea-bookmarklets
node v18.11.0
version:
4.0.0
endpoint
share
tweet
var express = require("@runkit/runkit/express-endpoint/1.0.0"); var app = express(exports); var bookmarklets = require("ea-bookmarklets"); app.get("/", (req,resp)=>{ resp.setHeader('Access-Control-Allow-Origin', '*'); bookmarklets.endpoint(req,resp); });
Once you create your Express app with the tonicExpress helper, it works like any other Express app. You can use middleware, declare routes, etc.
Loading…
no comments
sign in
to comment