Skip to content

Commit

Permalink
Add the Historian Https Ping Endpoint for Availability Monitoring Sys…
Browse files Browse the repository at this point in the history
…tem (#3702)

* Update the ping endpoint for historian

* Change the title to lower case
  • Loading branch information
tianzhu007 authored Sep 22, 2020
1 parent b405767 commit 60e3e52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/historian/src/routes/git/blobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export function create(store: nconf.Provider, tenantService: ITenantService, cac
return service.getBlob(sha, useCache);
}

/**
* Historian https ping endpoint for availability monitoring system
*/
router.get("/repos/ping", async (request, response) => {
response.sendStatus(200);
});

router.post("/repos/:ignored?/:tenantId/git/blobs", (request, response, next) => {
const blobP = createBlob(request.params.tenantId, request.get("Authorization"), request.body);
utils.handleResponse(
Expand Down

0 comments on commit 60e3e52

Please sign in to comment.