Test api
This commit is contained in:
parent
0b80fe4a93
commit
6789fcfd35
|
@ -8,13 +8,17 @@ import { Api } from '../api';
|
||||||
})
|
})
|
||||||
export class AppHome {
|
export class AppHome {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.start()
|
this.start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async start() {
|
async start() {
|
||||||
await Api.getApiurl();
|
await Api.login('test', 'prozac-prowler-stoop-patriot');
|
||||||
await Api.login();
|
let data = await Api.get("/users/me");
|
||||||
|
console.log(data);
|
||||||
|
await Api.post("/server/dummy/start");
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="app-home">
|
<div class="app-home">
|
||||||
|
|
Loading…
Reference in New Issue