Merge branch 'dev' into feat/missende-endpoints
This commit is contained in:
commit
2218bb9ea5
5 changed files with 3 additions and 5 deletions
|
@ -44,7 +44,6 @@ RUN npm install --silent --only=production
|
||||||
|
|
||||||
COPY ./docs ./docs
|
COPY ./docs ./docs
|
||||||
COPY ./backend/i18n ./backend/i18n
|
COPY ./backend/i18n ./backend/i18n
|
||||||
COPY ./backend/.env ./backend/.env
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
# TODO Replace with environment keys
|
# TODO Replace with environment keys
|
||||||
- ./backend/.env:/app/.env
|
- ./backend/.env:/app/dwengo/backend/.env
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- logging
|
- logging
|
||||||
|
|
|
@ -24,7 +24,7 @@ services:
|
||||||
- '3000:3000/tcp'
|
- '3000:3000/tcp'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/.env.staging:/app/.env
|
- ./backend/.env.staging:/app/dwengo/backend/.env
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- logging
|
- logging
|
||||||
|
|
|
@ -50,7 +50,6 @@ export class ClassController extends BaseController {
|
||||||
return this.get<TeachersResponse>(`/${id}/teachers`, { full });
|
return this.get<TeachersResponse>(`/${id}/teachers`, { full });
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
|
||||||
async getTeacherInvitations(id: string, full = true): Promise<TeacherInvitationsResponse> {
|
async getTeacherInvitations(id: string, full = true): Promise<TeacherInvitationsResponse> {
|
||||||
return this.get<TeacherInvitationsResponse>(`/${id}/teacher-invitations`, { full });
|
return this.get<TeacherInvitationsResponse>(`/${id}/teacher-invitations`, { full });
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ export class SubmissionController extends BaseController {
|
||||||
return this.get<SubmissionResponse>(`/${submissionNumber}`);
|
return this.get<SubmissionResponse>(`/${submissionNumber}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async createSubmission(data: any): Promise<SubmissionResponse> {
|
async createSubmission(data: unknown): Promise<SubmissionResponse> {
|
||||||
return this.post<SubmissionResponse>(`/`, data);
|
return this.post<SubmissionResponse>(`/`, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue