mancala/src/service/http_service.ts

21 lines
590 B
TypeScript
Raw Normal View History

2021-07-02 23:18:52 +03:00
//export const serverAdress = "http://localhost:5000"
//export const wsServerAdress = "ws://localhost:5000"
2021-06-30 22:23:38 +03:00
2021-07-02 23:18:52 +03:00
export const serverAdress = "https://halitaksoy.com/mancala"
export const wsServerAdress = "wss://halitaksoy.com/mancala/"
2021-06-27 19:28:47 +03:00
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 {
}
}