chore: separate frontend from backend
This commit is contained in:
11
app/types/api/contact.ts
Normal file
11
app/types/api/contact.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export interface ContactRequest {
|
||||
name: string;
|
||||
email: string;
|
||||
message: string;
|
||||
website?: string | null;
|
||||
}
|
||||
|
||||
export interface ContactResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
4
app/types/api/error.ts
Normal file
4
app/types/api/error.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface ApiError {
|
||||
message: string;
|
||||
success: boolean;
|
||||
}
|
||||
4
app/types/api/meta.ts
Normal file
4
app/types/api/meta.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface MetaResponse {
|
||||
version: string;
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user