Skip to content
Snippets Groups Projects
Commit 3bd956f1 authored by michael.minelli's avatar michael.minelli
Browse files

Config => Add assignment const

parent 83761e79
No related branches found
No related tags found
No related merge requests found
class ClientsSharedConfig { class ClientsSharedConfig {
public apiURL: string; public apiURL: string;
public assignment: {
filename: string, neededFiles: Array<string>
};
public gitlab: { public gitlab: {
apiURL: string apiURL: string
dojoAccount: { id: number; username: string; }; dojoAccount: { id: number; username: string; };
...@@ -20,6 +24,11 @@ class ClientsSharedConfig { ...@@ -20,6 +24,11 @@ class ClientsSharedConfig {
constructor() { constructor() {
this.apiURL = process.env.API_URL || ''; this.apiURL = process.env.API_URL || '';
this.assignment = {
filename : process.env.ASSIGNMENT_FILENAME || '',
neededFiles: JSON.parse(process.env.EXERCISE_NEEDED_FILES || '[]')
};
this.gitlab = { this.gitlab = {
apiURL : process.env.GITLAB_API_URL || '', apiURL : process.env.GITLAB_API_URL || '',
dojoAccount: { dojoAccount: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment