mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
post comment api url change
Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net>
This commit is contained in:
parent
1b53fe7bbf
commit
8b499bbb98
@ -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);
|
||||
}
|
||||
|
@ -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[] = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user