Move server into src/

This commit is contained in:
Jerko Steiner 2019-01-18 20:34:16 +01:00
parent 076ec515d3
commit 8a5ab067f6
71 changed files with 0 additions and 57 deletions

View File

@ -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
}
}
}
}

View File

@ -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
}