Danny Coates d4528848d9 moved jsconfig code into initScript 6 years ago
..
bin 1e62aa976d reimplemented l10n using dynamic import() (#1012) 6 years ago
middleware 7ccf462bf8 implemented PKCE auth (#921) 6 years ago
routes d4528848d9 moved jsconfig code into initScript 6 years ago
storage b6517c5442 port fix for #1005 to vnext 6 years ago
config.js 9e8e604024 stubbed in gcs (untested) 6 years ago
fxa.js f0cfc19f8c a new approach for the ui 6 years ago
initScript.js d4528848d9 moved jsconfig code into initScript 6 years ago
layout.js d4528848d9 moved jsconfig code into initScript 6 years ago
limiter.js af7a262ef0 refactored upload away from multipart forms to binary data 6 years ago
locale.js 1e62aa976d reimplemented l10n using dynamic import() (#1012) 6 years ago
log.js 53e822964e a few changes to make A/B testing easier 7 years ago
metadata.js 3fd2537311 refactored server 7 years ago
readme.md 18e1609cb3 updated docs 7 years ago
state.js d4528848d9 moved jsconfig code into initScript 6 years ago
streamparser.js 126ea8c7e6 use a Duplex stream for EOF 6 years ago

readme.md

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