Skip to content

Commit

Permalink
Add routes for liveness
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Nov 10, 2023
1 parent c71cf55 commit dc995f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion nais/nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ spec:
value: "dev-gcp:team-esyfo:aktivitetskrav-backend"
- name: BASE_PATH
value: "/syk/aktivitetskrav"

accessPolicy:
outbound:
rules:
Expand Down
5 changes: 5 additions & 0 deletions src/api/isAlive/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {NextRequest, NextResponse} from "next/server";

export async function GET(request: NextRequest) {
return NextResponse.json({ message: "Alive!" }, { status: 200 });
}
5 changes: 5 additions & 0 deletions src/api/isReady/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {NextRequest, NextResponse} from "next/server";

export async function GET(request: NextRequest) {
return NextResponse.json({ message: "Ready!" }, { status: 200 });
}

0 comments on commit dc995f7

Please sign in to comment.