This commit is contained in:
Les De Ridder 2017-02-15 04:54:26 +01:00
parent 68516ef824
commit 89df5e4155
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 8 additions and 8 deletions

View File

@ -130,7 +130,7 @@ class SessionApiMessage : ApiMessage
class ApiClient
{
enum string Endpoint = "https://m.belfius.be/F2CRenderingDexiaToClient/GEPARendering/machineIdentifier=s4/";
enum string Endpoint = "https://m.belfius.be/F2CRenderingDexiaToClient/GEPARendering/machineIdentifier=s5/";
private string _locale;
@ -380,15 +380,15 @@ shared static this()
auto password = fromStringz(getpass("Password: ")).idup;
apiClient.login2(otp, password);
auto router = new URLRouter;
router.get("/account/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getAccountAvailable()); });
router.get("/card/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getCardAvailable()); });
auto router = new URLRouter;
router.get("/account/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getAccountAvailable()); });
router.get("/card/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getCardAvailable()); });
auto settings = new HTTPServerSettings;
settings.sessionStore = new MemorySessionStore;
settings.port = 8080;
auto settings = new HTTPServerSettings;
settings.sessionStore = new MemorySessionStore;
settings.port = 8080;
settings.bindAddresses = ["::1", "127.0.0.1"];
listenHTTP(settings, router);
listenHTTP(settings, router);
}