You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
297B

  1. 'use strict';
  2. const express = require('express');
  3. const ecstatic = require('../lib/ecstatic');
  4. const http = require('http');
  5. const app = express();
  6. app.use(ecstatic({
  7. root: `${__dirname}/public`,
  8. showdir: true,
  9. }));
  10. http.createServer(app).listen(8080);
  11. console.log('Listening on :8080');