Skip to content

Files

Latest commit

ade10e4 · May 21, 2021

History

History
This branch is 2 commits ahead of mozilla/send:master.

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2021
Jul 29, 2020
May 21, 2021
Jul 29, 2020
Jul 28, 2020
Feb 26, 2019
May 21, 2021
Mar 13, 2019
Aug 9, 2019
Jul 24, 2020
May 21, 2021
Mar 6, 2019
Jul 29, 2019
Aug 25, 2017
Jul 29, 2020
Mar 13, 2019
Jul 24, 2020

Server Code

The server provides the API, serves static assets, and renders the pages for Send. The production entrypoint is prod.js and the development entrypoint is dev.js via webpack-dev-server.

Server configuration

config.js contains the schema for our configuration options. Environment variables are the preferred method for setting configuration.

Middleware

Contains authentication and localization middleware.

Routes

Contains all the server routes and handlers for the API and pages

Storage

Contains implementations of possible storage engines for the files and metadata