Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Added module to NuGet repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifailon committed Feb 8, 2024
1 parent c3798fd commit ac5957d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,14 @@ Invoke-Expression(New-Object Net.WebClient).DownloadString("https://raw.githubus

Wait for the command output: `Completed`

You can configure port, login and password for connect to the server in the configuration file (`WinAPI.ini`), which is located in the directory with the module
To find out where the module is installed, use the command:

```PowerShell
> $(Get-Module ps.win.api).Path
C:\Users\lifailon\Documents\PowerShell\Modules\ps.win.api\0.4.3\ps.win.api.psm1
```

# You can configure port, login and password for connect to the server in the configuration file `WinAPI.ini`, which is located in the directory with the module.

```PowerShell
port = 8443
Expand Down
8 changes: 5 additions & 3 deletions WinAPI/Server/WinAPI-0.4.3.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### ©2023 Lifailon
### Source: https://github.com/Lifailon/WinAPI
### Source GitHub: https://github.com/Lifailon/WinAPI
### Source NuGet: https://www.nuget.org/packages/ps.win.api
### REST API and Web server for [Kinozal-Bot](https://github.com/Lifailon/Kinozal-Bot)
<# Client
# Login and password default:
Expand Down Expand Up @@ -986,8 +987,9 @@ function Start-Socket {
### GET /
if ($context.Request.HttpMethod -eq "GET" -and $context.Request.RawUrl -eq "/") {
$data = @("
Version = 4.3
Source = https://github.com/Lifailon/WinAPI
Version = 0.4.3
GitHub = https://github.com/Lifailon/WinAPI
NuGet = https://www.nuget.org/packages/ps.win.api
") | ConvertFrom-StringData
Send-Response -Data $Data -Code 200 -Body -fl
}
Expand Down

0 comments on commit ac5957d

Please sign in to comment.