Skip to content

Instantly share code, notes, and snippets.

@overra
Last active January 2, 2019 02:42
Show Gist options
  • Select an option

  • Save overra/0934ab740b476aa7f0c028621a18a6c6 to your computer and use it in GitHub Desktop.

Select an option

Save overra/0934ab740b476aa7f0c028621a18a6c6 to your computer and use it in GitHub Desktop.

Revisions

  1. overra revised this gist Jan 2, 2019. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,2 @@
    const { send } = require('micro')
    module.exports = (req, res) => {
    send(res, 200, 'hello world!')
    }
    module.exports = (req, res) => send(res, 200, 'hello world!')
  2. overra created this gist Dec 31, 2018.
    4 changes: 4 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    const { send } = require('micro')
    module.exports = (req, res) => {
    send(res, 200, 'hello world!')
    }
    6 changes: 6 additions & 0 deletions now.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {
    "version": 2,
    "builds": [{"src": "index.js", "use" : "@now/node"}],
    "routes": [{"src": "/", "dest": "index.js"}]
    }

    5 changes: 5 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    {
    "dependencies": {
    "micro": "latest"
    }
    }