1,002 B
1,002 B
Routing
Embedder utilizes Express for routing and serving the app. Templating is currently with EJS, but there's a potential future migration to React. Passport is employed for authentication.
Routes:
-
/ (index.ts)
GET
:- Unauthenticated: Serve
home.ejs
- Authenticated: Serve
index.ejs
- Unauthenticated: Serve
POST
: Redirect to/
-
/login (auth.ts)
GET
: Servelogin.ejs
POST
to/login/password
:- Success: Redirect to
/
- Failure: Redirect to
/login
- Success: Redirect to
-
/logout (auth.ts)
POST
: Redirect to/
-
/gifv (index.ts)
GET
: Servegifv.ejs
POST
to/adduser
: Redirect to/
-
/adduser (adduser.ts)
GET
: Serveadduser.ejs
-
/sharex (index.ts)
POST
: Response is text containing path to uploaded file