Fix tabs
This commit is contained in:
parent
68516ef824
commit
89df5e4155
source
16
source/app.d
16
source/app.d
|
@ -130,7 +130,7 @@ class SessionApiMessage : ApiMessage
|
||||||
|
|
||||||
class ApiClient
|
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;
|
private string _locale;
|
||||||
|
|
||||||
|
@ -380,15 +380,15 @@ shared static this()
|
||||||
auto password = fromStringz(getpass("Password: ")).idup;
|
auto password = fromStringz(getpass("Password: ")).idup;
|
||||||
apiClient.login2(otp, password);
|
apiClient.login2(otp, password);
|
||||||
|
|
||||||
auto router = new URLRouter;
|
auto router = new URLRouter;
|
||||||
router.get("/account/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getAccountAvailable()); });
|
router.get("/account/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getAccountAvailable()); });
|
||||||
router.get("/card/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getCardAvailable()); });
|
router.get("/card/available", delegate(HTTPServerRequest, HTTPServerResponse response) { response.writeBody(apiClient.getCardAvailable()); });
|
||||||
|
|
||||||
auto settings = new HTTPServerSettings;
|
auto settings = new HTTPServerSettings;
|
||||||
settings.sessionStore = new MemorySessionStore;
|
settings.sessionStore = new MemorySessionStore;
|
||||||
settings.port = 8080;
|
settings.port = 8080;
|
||||||
settings.bindAddresses = ["::1", "127.0.0.1"];
|
settings.bindAddresses = ["::1", "127.0.0.1"];
|
||||||
|
|
||||||
listenHTTP(settings, router);
|
listenHTTP(settings, router);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue