Skip to content

Commit

Permalink
Health as a component
Browse files Browse the repository at this point in the history
  • Loading branch information
ljones140 committed Oct 30, 2024
1 parent 31ec663 commit 528828d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/components/HealthCheck.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';

const HealthCheck = () => {
return (
<div>
<pre>{JSON.stringify({foo: "bar"})}</pre>
</div>
);
};

export default HealthCheck;
5 changes: 4 additions & 1 deletion src/components/RehydrationProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import {
ROUTE_STATUS,
ROUTE_GETINVOLED,
ROUTE_CHARTER,
ROUTE_FILE
ROUTE_FILE,
ROUTE_HEALTH
} from '../utils/routingConstants'
import history from '../config/history'
import { configureStore } from '../configureStore'
Expand All @@ -37,6 +38,7 @@ import PageFile from './Navigation/Pages/PageFile'
import PageHarvest from './Navigation/Pages/PageHarvest'
import GetInvolved from './GetInvolved'
import Charter from './Charter'
import HealthCheck from './HealthCheck'

const store = configureStore()

Expand Down Expand Up @@ -98,6 +100,7 @@ export default class RehydrationDelayedProvider extends Component {
<Route path={ROUTE_STATUS} component={withTracker(PageStatus)} />
<Route path={ROUTE_DISCORD} component={() => (window.location = 'https://discord.gg/wEzHJku')} />
<Route path={ROUTE_FILE} component={withTracker(PageFile)} />
<Route path={ROUTE_HEALTH} component={withTracker(HealthCheck)} />
<Route path={ROUTE_ROOT} component={withTracker(PageBrowse)} />
</Switch>
</App>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/routingConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const ROUTE_STATUS = '/status'
export const ROUTE_GETINVOLED = '/get-involved'
export const ROUTE_CHARTER = '/charter'
export const ROUTE_FILE = '/file'
// export const ROUTE_HEALTH = '/health'
export const ROUTE_HEATH = '/root'
export const ROUTE_ROOT = '/'

0 comments on commit 528828d

Please sign in to comment.