Added default route
This commit is contained in:
parent
a490cb1658
commit
d763474485
|
@ -32,6 +32,11 @@ app.use(mongo({ uri: config.dbConnectionString }, { useUnifiedTopology: true }))
|
||||||
|
|
||||||
initiateTelegramBot();
|
initiateTelegramBot();
|
||||||
|
|
||||||
|
router.get('/', async(ctx, next) => {
|
||||||
|
ctx.res.statusCode = 200;
|
||||||
|
await next();
|
||||||
|
})
|
||||||
|
|
||||||
router.post('/alerts', async(ctx, next) => {
|
router.post('/alerts', async(ctx, next) => {
|
||||||
try {
|
try {
|
||||||
const alert = ctx.request.body;
|
const alert = ctx.request.body;
|
||||||
|
|
Loading…
Reference in New Issue