post comment api url change

Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net>
This commit is contained in:
tykayn 2022-02-15 12:11:41 +01:00
parent 1b53fe7bbf
commit 8b499bbb98
2 changed files with 3 additions and 3 deletions

View File

@ -141,9 +141,9 @@ export class ApiService {
}
}
public async createComment(slug: string, comment: Comment | CommentDTO): Promise<string> {
public createComment(slug: string, comment: Comment | CommentDTO): Promise<string> {
try {
return await this.axiosInstance.post(`${this.baseHref}${this.commentsEndpoint}/${slug}`, comment);
return this.axiosInstance.post(`${this.baseHref}/comments/poll/${slug}`, comment);
} catch (error) {
ApiService.handleError(error);
}

View File

@ -50,7 +50,7 @@ export class PollService implements Resolve<Poll> {
public showDateInterval = false;
public allowSeveralHours = false;
public richTextMode = false;
public mode_calendar = true;
public mode_calendar = false;
public calendar: Date[] = [new Date()];
public disabled_dates: Date[] = [];