Skip to content

Releases: zopdev/static-server

v0.0.5

24 Feb 11:46
1d7f3b8
Compare
Choose a tag to compare

Fixes:

Corrected File Serving Priority Between filePath.html and filePath/index.html

  • The server now correctly prioritizes filePath.html if it exists.
  • If filePath.html does not exist but filePath/ is a directory, the server serves filePath/index.html.
  • If neither exists, the server returns 404 Not Found.

v0.0.4

19 Feb 09:51
20cc193
Compare
Choose a tag to compare
  1. Update gofr version to v1.34.0

v0.0.3

10 Feb 05:46
150f9b6
Compare
Choose a tag to compare

What's Changed

  • Exempt gofr's well-known endpoint in static server middleware.

Full Changelog: v0.0.2...v0.0.3

v0.0.2

09 Jan 15:46
24a9a10
Compare
Choose a tag to compare

Enhancements

  1. Removed File Mapping
    The server no longer creates a map of files, streamlining the file-serving process.

  2. 404 Status for Missing Files
    If a requested file is not found, the server now returns a 404 status code, improving error handling.

  3. Default Directory Update
    The default directory for serving static files has been changed to static.

    • To customize this directory set the STATIC_DIR_PATH environment variable.

v0.0.1

27 Nov 17:47
e58debd
Compare
Choose a tag to compare

Release Notes

  1. Create Static File Server which reads from website directory with the following support.
    • Re-direct to 404.html endpoint when webpage does not exist.
    • Add .html endpoint to urls which does not have any extension.