Skip to content

Comments

Add version endpoint#146

Merged
httpjamesm merged 1 commit intomainfrom
feature/add-version-endpoint
Jul 25, 2024
Merged

Add version endpoint#146
httpjamesm merged 1 commit intomainfrom
feature/add-version-endpoint

Conversation

@httpjamesm
Copy link
Owner

@httpjamesm httpjamesm commented Jul 25, 2024

Related to #137

Add an endpoint to return the instance version as a string.

  • New file src/routes/version.go:

    • Create a new file to define the version endpoint.
    • Import necessary packages.
    • Define a function GetVersion that returns the version as a string.
  • Modify main.go:

    • Import the new version route.
    • Add a new route to the router for the version endpoint.

For more details, open the Copilot Workspace session.

@httpjamesm httpjamesm merged commit 1a7635c into main Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant