Skip to content

Commit

Permalink
intern.dev -> ansatt.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornhun committed May 2, 2024
1 parent 68befef commit 875f7dc
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/utils/environment.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { Miljo } from "../types/miljo";
import { Miljo } from '../types/miljo';

export class Environment {
static apiUrl: string;
static loginUrl: string;
static apiUrl: string;
static loginUrl: string;

static settEnv = (miljo: Miljo) => {
switch (miljo) {
case "LOCAL":
Environment.apiUrl = `http://localhost:8096/person/arbeidsforhold-api`;
Environment.loginUrl = `http://localhost:5000`;
break;
case "DEV":
Environment.apiUrl = `https://www.intern.dev.nav.no/person/arbeidsforhold-api`;
Environment.loginUrl = `https://login.ekstern.dev.nav.no/oauth2/login`;
break;
case "PROD":
Environment.apiUrl = `https://www.nav.no/person/arbeidsforhold-api`;
Environment.loginUrl = `https://login.nav.no/oauth2/login`;
break;
default:
}
};
static settEnv = (miljo: Miljo) => {
switch (miljo) {
case 'LOCAL':
Environment.apiUrl = `http://localhost:8096/person/arbeidsforhold-api`;
Environment.loginUrl = `http://localhost:5000`;
break;
case 'DEV':
Environment.apiUrl = `https://www.ansatt.dev.nav.no/person/arbeidsforhold-api`;
Environment.loginUrl = `https://login.ekstern.dev.nav.no/oauth2/login`;
break;
case 'PROD':
Environment.apiUrl = `https://www.nav.no/person/arbeidsforhold-api`;
Environment.loginUrl = `https://login.nav.no/oauth2/login`;
break;
default:
}
};
}

0 comments on commit 875f7dc

Please sign in to comment.