setBasePath(get_public_path() . "/api"); $router->map("POST", "/tactic/[i:id]/edit/name", Action::auth(fn(int $id, Account $acc) => getTacticController()->updateName($id, $acc))); $router->map("POST", "/auth", Action::noAuth(fn() => getAuthController()->authorize())); return $router; } Api::render(API::handleMatch(getRoutes()->match()));