Add cron configurator

This commit is contained in:
kevinpauer
2022-04-25 19:19:40 +02:00
parent 462bafbb2e
commit 93fc314c15
7 changed files with 123 additions and 6 deletions

View File

@@ -66,4 +66,23 @@ export class ProfileService {
}
);
}
/**
* @param {string} cronString
* @returns Observable
*/
public addCronString(cron: string): Observable<any> {
return this.http.put(
'https://gruppe1.testsites.info/api/user' + '/setCron',
{
cron,
},
{
headers: new HttpHeaders({
'Content-Type': 'application/json',
Authorization: 'Bearer ' + this.tokenStorage.getToken(),
}),
}
);
}
}