Menu
CoddyTech

Recap: Museum Pass

Part of the Routing and State section of Coddy's Vue journey. Lesson 50 of 55.

challenge icon

Challenge

Medium

Complete the museum pass workflow. The Archive requires an active local pass and redirects to the named Join route otherwise. Join is public; Activate locally sets the pass active and replaces Join with Archive. Help and Lobby stay public. Expire pass sets active false without immediately navigating; a later Archive attempt from a public route must redirect again. Keep one shared installed Pinia instance.

Keep the supplied route readout and bootstrap files.

Try it yourself

<!doctype html><html><head><meta charset="UTF-8"><title>Routing practice</title></head><body><div id="app"></div><script type="module" src="./main.js"></script></body></html>

All lessons in Routing and State