This commit is contained in:
Jimmy 2022-01-21 13:55:16 +13:00
parent 0b80fe4a93
commit 6789fcfd35
1 changed files with 7 additions and 3 deletions

View File

@ -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">