From 4a11bad7ddd23007760ed902c6e27dca3b6872c6 Mon Sep 17 00:00:00 2001 From: 0x1d Date: Tue, 21 Oct 2025 22:56:11 +0200 Subject: [PATCH] fix: correct port --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5d7fdd0..fdf71e7 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,13 @@ go mod download go run main.go ``` -The server will start on port 8080 by default (or use `PORT` environment variable to change it). +The server will start on port 3002 by default (or use `PORT` environment variable to change it). ## API Endpoints ### Upload Firmware ```bash -curl -X POST http://localhost:8080/firmware \ +curl -X POST http://localhost:3002/firmware \ -F "metadata={\"name\":\"base\",\"version\":\"1.0.0\",\"labels\":{\"app\":\"base\"}}" \ -F "firmware=@firmware.bin" ``` @@ -47,23 +47,23 @@ curl -X POST http://localhost:8080/firmware \ ### List Firmware ```bash # Get all firmware -curl http://localhost:8080/firmware +curl http://localhost:3002/firmware # Filter by name -curl "http://localhost:8080/firmware?name=base" +curl "http://localhost:3002/firmware?name=base" # Filter by version -curl "http://localhost:8080/firmware?version=1.0.0" +curl "http://localhost:3002/firmware?version=1.0.0" ``` ### Download Firmware ```bash -curl http://localhost:8080/firmware/base/1.0.0 -o firmware.bin +curl http://localhost:3002/firmware/base/1.0.0 -o firmware.bin ``` ### Health Check ```bash -curl http://localhost:8080/health +curl http://localhost:3002/health ``` ## Storage Structure @@ -84,7 +84,7 @@ registry/ ## Configuration The registry uses the following environment variables: -- `PORT`: Server port (default: 8080) +- `PORT`: Server port (default: 3002) ## Database Schema