Skip to content

Commit

Permalink
this is added psot bloglist
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaNoor committed Sep 18, 2023
1 parent 63c6f8d commit 2e4e7c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Empty file.
5 changes: 5 additions & 0 deletions src/app/Feature/PostBlog/services/postservices.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {HttpClient} from "@angular/common/http";
import {addpost} from "../models/Blogpost.requst";
import {Observable} from "rxjs/internal/Observable";
import {environment} from "../../../../environments/environment";
import {blogpostshow} from "../models/postblogshow";

@Injectable({
providedIn: 'root'
Expand All @@ -15,4 +16,8 @@ addpostblog(postblog:addpost):Observable<void>
{
return this.http.post<void>(`${environment.baseapi}/api/PostBlog/postblog`,postblog);
}

getall():Observable<blogpostshow[]>{
return this.http.get<blogpostshow[]>(`${environment.baseapi}/api/PostBlog/postblog`);
}
}

0 comments on commit 2e4e7c4

Please sign in to comment.