framebassman / ticket_store

App for sell tickets
https://chertopolokh.ru
0 stars 1 forks source link

Implement not found page for TicketStore.Web microservice #124

Open framebassman opened 5 years ago

framebassman commented 5 years ago

Explanation: We have TicketStore.Web microservice and the following routes:

          <Route path="/tickets/farewell" component={Farewell}/>
          <Redirect from="/tickets/turnstile" to="/turnstile/camera" />
          <Route path="/turnstile" component={TurnstileMenu} />
          <Route path="" component={AfishaWithMenu}/>

Please pay attention for the following things:

What it means: any path which doesn't match with /tickets/farewell, /tickets/turnstile and /turnstile - will match with "" (empty string) So, it means that https://chertopolokh.ru/adwadawdawd will be matched to https://chertopolokh.ru

Problem: We have kabinet microservice which fails sometimes. kabinet has healthcheck route https://chertopolokh.ru/kabinet/api/health and it should response with 200 status code And when kabinet fails - healthcheck route matches to "" (empty string) route - and I have no any notifications about fails)