Test api
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user