Skip to content

Commit

Permalink
Update app/server/lib/FlexServer.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Florent <[email protected]>
  • Loading branch information
hexaltation and fflorent committed Jan 22, 2025
1 parent 7d7d0e5 commit ab7620a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/server/lib/FlexServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,7 @@ export class FlexServer implements GristServer {
*/
public addBootPage() {
if (this._check('boot')) { return; }
/* The regex above captures routes like
/boot
/boot/
/boot/KEY/
/boot/KEY
/boot//
*/
this.app.get(/\/boot(\/(.*\/?)?)?$/, async (req, res) => {
this.app.get('/boot(/*)?', async (req, res) => {
// Doing a good redirect is actually pretty subtle and we might
// get it wrong, so just say /boot got moved.
res.send('The /boot/KEY page is now /admin?boot-key=KEY');
Expand Down

0 comments on commit ab7620a

Please sign in to comment.