Danny Coates 7ccf462bf8 implemented PKCE auth (#921) 6 years ago
..
bin 20528eb0d1 added ANDROID environment variable to dev server for hosting the android html 6 years ago
middleware 7ccf462bf8 implemented PKCE auth (#921) 6 years ago
routes 7ccf462bf8 implemented PKCE auth (#921) 6 years ago
storage b89bef6e89 refactor to single bucket 6 years ago
config.js 7ccf462bf8 implemented PKCE auth (#921) 6 years ago
fxa.js 7ccf462bf8 implemented PKCE auth (#921) 6 years ago
initScript.js 7ccf462bf8 implemented PKCE auth (#921) 6 years ago
layout.js 718d74fa50 Implemented FxA 6 years ago
limiter.js af7a262ef0 refactored upload away from multipart forms to binary data 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 7ccf462bf8 implemented PKCE auth (#921) 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