Basic api funcitonality in frontend

This commit is contained in:
Imbus 2024-03-13 17:06:26 +01:00
parent 6b09cfbf23
commit 3a7663124d
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,11 @@
// This is how the API responds
export interface User {
id: number;
name: string;
}
// Used to create a new user
export interface NewUser {
name: string;
password: string;
}