Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to directly add REST calls to layouts #580

Open
Kaliumhexacyanoferrat opened this issue Dec 9, 2024 · 0 comments
Open

Allow to directly add REST calls to layouts #580

Kaliumhexacyanoferrat opened this issue Dec 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

Kaliumhexacyanoferrat commented Dec 9, 2024

As a developer, I would like to add REST calls directly to layouts, so that my code is easier to read and maintain.

Example

var app = Layout.Create()
                .OnGet("/info", () => "This is info");

Acceptance criteria

  • The functionality is implemented on framework level
    • There is a project template for the new framework
    • The framework is mentioned in the docs, in the project site
    • The samples in the concepts section have been adjusted
  • The functionality is implemented internally using the Inline builder
  • The functionality is implemented in a new module with the name of the new framework
  • The feature is documented on the GenHTTP website
  • The feature is covered by acceptance tests
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added the enhancement New feature or request label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant