Move server into src/
This commit is contained in:
parent
076ec515d3
commit
8a5ab067f6
@ -1,36 +0,0 @@
|
||||
export interface IAPIDef {
|
||||
'/auth/register': {
|
||||
'post': {
|
||||
body: {
|
||||
username: string
|
||||
password: string
|
||||
}
|
||||
}
|
||||
}
|
||||
'/auth/login': {
|
||||
'post': {
|
||||
body: {
|
||||
username: string
|
||||
password: string
|
||||
}
|
||||
}
|
||||
}
|
||||
'/auth/logout': {
|
||||
'get': {}
|
||||
},
|
||||
'/users/password': {
|
||||
'post': {
|
||||
body: {
|
||||
oldPassword: string
|
||||
newPassword: string
|
||||
}
|
||||
}
|
||||
}
|
||||
'/users/profile': {
|
||||
'get': {
|
||||
response: {
|
||||
id: number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
export type IMethod = 'get'
|
||||
| 'post'
|
||||
| 'put'
|
||||
| 'delete'
|
||||
| 'patch'
|
||||
| 'head'
|
||||
| 'options'
|
||||
|
||||
export interface IRoutes {
|
||||
// has to be any because otherwise TypeScript will start
|
||||
// throwing error and interfaces without an index signature
|
||||
// would not be usable
|
||||
[route: string]: any
|
||||
}
|
||||
|
||||
export interface IRoute {
|
||||
params: any
|
||||
query: any
|
||||
body: any
|
||||
response: any
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user