mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
checkhealth: add dummy endpoint
This commit is contained in:
parent
30fb47901a
commit
e88cf4b212
2 changed files with 23 additions and 0 deletions
11
src/api/checkhealth/controllers/checkhealth.ts
Normal file
11
src/api/checkhealth/controllers/checkhealth.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { name, version } from '../../../../package.json';
|
||||
|
||||
export default () => ({
|
||||
index() {
|
||||
return {
|
||||
name,
|
||||
version,
|
||||
status: 'ok',
|
||||
};
|
||||
},
|
||||
});
|
||||
12
src/api/checkhealth/routes/checkhealth.ts
Normal file
12
src/api/checkhealth/routes/checkhealth.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
export default {
|
||||
routes: [
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/checkhealth',
|
||||
handler: 'checkhealth.index',
|
||||
config: {
|
||||
auth: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue