Lightweight node app to use in place of plex to self host your video and movie collections. Running on just under 50MB of ram this is ideal for people looking to host videos on minimal hardware.
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.

32 lines
667 B

  1. const routes = require('express').Router();
  2. const icon = require('./icon');
  3. routes.get('/icon', icon);
  4. const video = require('./video');
  5. routes.get('/video', video);
  6. const videos = require('./videos');
  7. routes.get('/videos', videos);
  8. const watch = require('./watch');
  9. routes.get('/watch', watch);
  10. const users = require('./users');
  11. routes.get('/users', users);
  12. const utils = require("../utils");
  13. function getHomePageInformation(templateContext, request)
  14. {
  15. templateContext.username = request.session.username;
  16. }
  17. routes.get('/', (request, result) =>
  18. {
  19. utils.renderHTML(request, result, "home.html", getHomePageInformation)
  20. });
  21. module.exports = routes;