Skip to content

Instantly share code, notes, and snippets.

View panesardev's full-sized avatar
💻
Coding

Sukhpreet Singh panesardev

💻
Coding
View GitHub Profile
FROM node:14.1-alpine
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN npm install --production
export class HttpService<T> {
constructor(
private http: HttpClient,
private url: string,
) {
this.url = this.url.endsWith('/') ? this.url : this.url + '/';
}
findAll(): Observable<T[]> {
return this.http.get<T[]>(this.url);