Skip to content

Conversation

@euanh
Copy link
Collaborator

@euanh euanh commented Apr 14, 2025

Motivation

The Vapor template repository splits the server into a main entry point file and a separate route installation function. Adopting the same structure makes this example more familiar to users who are used to the official template.

Fixes #61

Modifications

  • Adopt the Vapor template structure for HelloWorldVapor
  • Use the -warnings-as-errors flag when building end to end examples.

Result

The example works in the same way as before but has a more familiar structure for Vapor users.

Test Plan

All tests continue to pass.

@euanh euanh force-pushed the docs/update-vapor-example branch from 2e1ab06 to 96d74ea Compare April 14, 2025 10:07
@euanh euanh added area/documentation Improvements or additions to documentation semver/none No version bump required. area/testing Improvements to tests. labels Apr 14, 2025
@euanh euanh merged commit 0c9ea97 into apple:main Apr 14, 2025
23 checks passed
@euanh euanh deleted the docs/update-vapor-example branch April 14, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation area/testing Improvements to tests. semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Vapor example uses deprecated APIs and should be updated

1 participant