18 lines
460 B
TypeScript
18 lines
460 B
TypeScript
|
|
export const serverAdress = "http://localhost:5000"
|
||
|
|
export const wsServerAdress = "ws://localhost:5000"
|
||
|
|
|
||
|
|
interface HttpService {
|
||
|
|
get: (route: string, succes: () => any, error: () => any) => any
|
||
|
|
}
|
||
|
|
|
||
|
|
class HttpServiceImpl implements HttpService{
|
||
|
|
public serverAdress : string
|
||
|
|
|
||
|
|
constructor(serverAdress : string){
|
||
|
|
this.serverAdress = serverAdress
|
||
|
|
}
|
||
|
|
|
||
|
|
public get(route: string, succes: () => any, error: () => any) : any {
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|