moved data to public dir
This commit is contained in:
parent
9415c60287
commit
36d39b524c
@ -4,7 +4,8 @@ namespace ParadoxSaveParser.WebAPI;
|
|||||||
|
|
||||||
public static class PathHelper
|
public static class PathHelper
|
||||||
{
|
{
|
||||||
public static readonly IOPath DATA_DIR = "data";
|
public static readonly IOPath PUBLIC_DIR = "public";
|
||||||
|
public static readonly IOPath DATA_DIR = Path.Concat(PUBLIC_DIR, "data");
|
||||||
public static readonly IOPath SAVES_DIR = Path.Concat(DATA_DIR, "saves");
|
public static readonly IOPath SAVES_DIR = Path.Concat(DATA_DIR, "saves");
|
||||||
public static readonly IOPath PARSED_DIR = Path.Concat(DATA_DIR, "parsed");
|
public static readonly IOPath PARSED_DIR = Path.Concat(DATA_DIR, "parsed");
|
||||||
public static readonly IOPath TEMP_DIR = "temp";
|
public static readonly IOPath TEMP_DIR = "temp";
|
||||||
|
|||||||
@ -97,7 +97,7 @@ public static class Program
|
|||||||
// http server
|
// http server
|
||||||
var router = new SimpleRouter(loggerRoot);
|
var router = new SimpleRouter(loggerRoot);
|
||||||
router.DefaultRoute = new SimpleRouter.RouteWithMethod(HttpMethod.GET,
|
router.DefaultRoute = new SimpleRouter.RouteWithMethod(HttpMethod.GET,
|
||||||
new ServeFilesRouteHandler("public"));
|
new ServeFilesRouteHandler(PathHelper.PUBLIC_DIR));
|
||||||
router.MapRoute("/uploadSave", HttpMethod.POST,
|
router.MapRoute("/uploadSave", HttpMethod.POST,
|
||||||
new UploadSaveHandler(mainCancel.Token, bgJobManager, saveFilters));
|
new UploadSaveHandler(mainCancel.Token, bgJobManager, saveFilters));
|
||||||
router.MapRoute("/getSaveStatus", HttpMethod.GET,
|
router.MapRoute("/getSaveStatus", HttpMethod.GET,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user