terraform-connect
v1.0.0
Published
terraform asset pipeline as connect middleware
Downloads
13
Maintainers
Readme
terraform-connect
use the terraform asset pipeline as connect middleware
Extracted with some minor modifications from the harp server middleware.
Usage
var express = require('express'),
TerraConnect = require('terraform-connect');
var app = express();
app.use(express.static(path.join(__dirname, 'public')));
app.use(TerraConnect.pipeline(path.join(__dirname, 'public'), { root: './public' }));
The options
object is there to future-proof the pipeline()
call in case it ever needs more than just the asset directory path.
License
MIT.