Compare commits
2 commits
a398641172
...
1805321f18
Author | SHA1 | Date | |
---|---|---|---|
1805321f18 | |||
bb9a7e8279 |
3 changed files with 3 additions and 3 deletions
|
@ -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 -> {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue