Skip to content

Commit

Permalink
feat(#29): / endpoint to check if API is running
Browse files Browse the repository at this point in the history
  • Loading branch information
barthofu committed Aug 19, 2022
1 parent 1f21a03 commit 5195581
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/api/controllers/other.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { injectable } from "tsyringe"
import { Get, Router } from "@discordx/koa"
import { Context } from "koa"

import { BaseController } from "@utils/classes"

@Router()
@injectable()
export class HealthController extends BaseController {

@Get('/')
async index(ctx: Context) {

this.ok(ctx, 'API server is running')
}
}

0 comments on commit 5195581

Please sign in to comment.