activate.service.ts 280 Bytes
Newer Older
Kevin Robert's avatar
Kevin Robert committed
1
2
3
4
5
6
7
8
9
10
11
12
13
import axios, { AxiosInstance } from 'axios';

export default class ActivateService {
  private axios: AxiosInstance;

  constructor() {
    this.axios = axios;
  }

  public activateAccount(key: string): Promise<any> {
    return this.axios.get(`api/activate?key=${key}`);
  }
}