Compare commits
No commits in common. "1805321f1867d545abaa1ac267e0e5e5cc79bf59" and "a398641172fae4755781cc7d46223c1c36dfa5e6" have entirely different histories.
1805321f18
...
a398641172
3 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ public class WebAPI implements Runnable {
|
||||||
public void run() {
|
public void run() {
|
||||||
logger.info("Starting web application");
|
logger.info("Starting web application");
|
||||||
var app = Javalin.create(config -> {
|
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.prefer405over404 = true; // return 405 instead of 404 if path is mapped to different HTTP method
|
||||||
config.http.defaultContentType = "application/json";
|
config.http.defaultContentType = "application/json";
|
||||||
config.staticFiles.add(staticFileConfig -> {
|
config.staticFiles.add(staticFileConfig -> {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { ServerConfig } from "@/models/server";
|
import type { ServerConfig } from "@/models/server";
|
||||||
|
|
||||||
const configUrl = "/api/servers/configs/"
|
const configUrl = "http://localhost:7070/api/servers/configs/"
|
||||||
|
|
||||||
export async function getConfigs(): Promise<ServerConfig[]> {
|
export async function getConfigs(): Promise<ServerConfig[]> {
|
||||||
return fetch(configUrl)
|
return fetch(configUrl)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { UserConfig } from '@/models/user'
|
import type { UserConfig } from '@/models/user'
|
||||||
|
|
||||||
const configUrl = "/api/users/configs/"
|
const configUrl = "http://localhost:7070/api/users/configs/"
|
||||||
|
|
||||||
export async function getConfigs(): Promise<UserConfig[]> {
|
export async function getConfigs(): Promise<UserConfig[]> {
|
||||||
return fetch(configUrl)
|
return fetch(configUrl)
|
||||||
|
|
Loading…
Reference in a new issue