mseeley / finch

Finch is an observant and nimble monitor
Mozilla Public License 2.0
0 stars 0 forks source link

feat: http-router #260

Open mseeley opened 4 years ago

mseeley commented 4 years ago

A simple http route to operators mapping would be very helpful. The file associated each route is loaded and treated as an array of operators. routes functions like a dynamic include.

use: "@finch/http-router"
  params:
    port: 8080,
    routes:
      "/route/:param": "./file.js",
      "/route2/:param": "./file.yaml",
mseeley commented 4 years ago

Just leaving myself a note that this is more generally a web-hook operator.