Home page carousel
[eliot.git] / blueprints / common / eliot-ui / frontend-src / src / app / _services / user.service.ts
1 import { Injectable } from '@angular/core';
2 import { User } from '../_models/user';
3 import { HttpClient } from '@angular/common/http';
4
5 @Injectable({
6   providedIn: 'root'
7 })
8 export class UserService {
9
10   constructor(private http: HttpClient) { }
11
12   register(user: User) {
13     return this.http.post(`auth/register`, user);
14   }
15
16 }