Compare commits

...

2 commits

Author SHA1 Message Date
1805321f18 Disable dev Javalin logging 2023-05-11 21:25:12 +02:00
bb9a7e8279 Fix api url in UI
Reminding of the local development
2023-05-11 18:45:20 +02:00
3 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ public class WebAPI implements Runnable {
public void run() {
logger.info("Starting web application");
var app = Javalin.create(config -> {
config.plugins.enableDevLogging();
// config.plugins.enableDevLogging();
config.http.prefer405over404 = true; // return 405 instead of 404 if path is mapped to different HTTP method
config.http.defaultContentType = "application/json";
config.staticFiles.add(staticFileConfig -> {

View file

@ -1,6 +1,6 @@
import type { ServerConfig } from "@/models/server";
const configUrl = "http://localhost:7070/api/servers/configs/"
const configUrl = "/api/servers/configs/"
export async function getConfigs(): Promise<ServerConfig[]> {
return fetch(configUrl)

View file

@ -1,6 +1,6 @@
import type { UserConfig } from '@/models/user'
const configUrl = "http://localhost:7070/api/users/configs/"
const configUrl = "/api/users/configs/"
export async function getConfigs(): Promise<UserConfig[]> {
return fetch(configUrl)