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