mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
added authorization stores and fixed http client
This commit is contained in:
15
src/services/AuthService.ts
Normal file
15
src/services/AuthService.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { AppService, BaseService } from "core/services";
|
||||
|
||||
class PingService extends BaseService {
|
||||
constructor(appService: AppService) {
|
||||
super("/auth", appService);
|
||||
}
|
||||
login = (data?: Object, headers?: HeadersInit) => {
|
||||
return this.appService.post(this.endpoint + "/login", data, headers);
|
||||
};
|
||||
register = (data?: Object, headers?: HeadersInit) => {
|
||||
return this.appService.post(this.endpoint + "/register", data, headers);
|
||||
};
|
||||
}
|
||||
|
||||
export default PingService;
|
||||
Reference in New Issue
Block a user