blnkfinance / blnk

Blnk is an open-source financial ledger server that enables you build financial products easily.
https://docs.blnkfinance.com
Apache License 2.0
33 stars 10 forks source link

500 error when root api path "/" is visited on a browser #18

Closed struckchure closed 5 months ago

struckchure commented 7 months ago

Description

The server exists with a status code of 500 when the http://localhost:4100 is visited on a browser.

Steps to reproduce

Using the following config file

{
  "port": "4100",
  "project_name": "Local",
  "default_currency": "NGN",
  "data_source": {
    "dns": "postgres://postgres:postgres@localhost:5432/blnk?sslmode=disable"
  },
  "redis": {
    "dns": "redis://localhost:6379"
  }
}

Start the server with

go run ./cmd start

image

PS: Certainly, the API wouldn't be used in this manner, but a 404 should be returned at least.

struckchure commented 7 months ago

I just found the project, it was a comment on api/api.goL:25

Working on a fix