mancala/src/service/http_service.ts

18 lines
460 B
TypeScript
Raw Normal View History

2021-06-27 19:28:47 +03:00
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 {
}
}