Fix tabs
This commit is contained in:
parent
68516ef824
commit
89df5e4155
16
source/app.d
16
source/app.d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue