import {join} from "node:path";
import {Configuration} from "@tsed/di";
import {application} from "@tsed/platform-http";
{{#forEach imports}}{{#if tsIngore}}
// @ts-ignore
{{/if}}import {{symbols}}{{#if symbols}} from {{/if}}"{{from}}";{{comment}}
{{/forEach}}

@Configuration({
  ...config,
  acceptMimes: ["application/json"],
  httpPort: process.env.PORT || 8083,
  httpsPort: false, // CHANGE
  mount: {
    "{{route}}": [
      ...Object.values(rest)
    ]{{#or swagger oidc}},
    "/": [{{#if swagger}}
      ...Object.values(pages){{/if}}{{#and swagger oidc}},{{/and}}{{#if oidc}}
      InteractionsController{{/if}}
    ]{{/or}}
  },{{#if swagger}}
  swagger: [
    {
      path: "/doc",
      specVersion: "3.0.1"
    }
  ],{{/if}}{{#if scalar}}
  scalar: [
    {
      path: {{#if swagger}}"/scalar/doc"{{else}}"/doc"{{/if}},
      specVersion: "3.0.1"
    }
  ],{{/if}}
