add logging to ngaccount

pull/19/head
Niko PLP 1 year ago
parent 51e4095469
commit ffab958276
  1. 2
      ng-app/src/App.svelte
  2. 2
      ngaccount/src/main.rs

@ -11,7 +11,7 @@
<script lang="ts">
// this line is needed to have the SDK working when compiling for a single file bundle (pnpm webfilebuild)
import * as api from "ng-sdk-js";
// import * as api from "ng-sdk-js";
import { push, default as Router } from "svelte-spa-router";
import { onMount, tick, onDestroy } from "svelte";
import {

@ -282,7 +282,7 @@ async fn main() -> anyhow::Result<()> {
cors = cors.allow_origin(origin.as_str());
cors = cors.allow_origin(origin2.as_str());
log::info!("Starting server on http://localhost:3031");
warp::serve(api_v1.or(static_files).with(cors))
warp::serve(api_v1.or(static_files).with(cors).with(incoming_log))
.run(([127, 0, 0, 1], 3031))
.await;
}

Loading…
Cancel
Save