make shortened urls editable

This commit is contained in:
_Bastler
2021-08-16 19:06:12 +02:00
parent d7fb55a661
commit 323ce0e885
6 changed files with 225 additions and 48 deletions
+4
View File
@@ -24,6 +24,10 @@ export class UrlShortenerService {
return this.http.post(environment.apiUrl + "/url/shortener", shortendUrlModel);
}
update(shortendUrlModel) {
return this.http.patch(environment.apiUrl + "/url/shortener", shortendUrlModel);
}
delete(code) {
return this.http.delete(environment.apiUrl + "/url/shortener/" + code);
}