Basic api funcitonality in frontend
This commit is contained in:
parent
6b09cfbf23
commit
3a7663124d
2 changed files with 43 additions and 0 deletions
11
frontend/src/Types/Users.ts
Normal file
11
frontend/src/Types/Users.ts
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue