Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Conversation

@Magiguigui
Copy link

Self-describing (and from #48)

Copy link
Contributor

@siemensikkema siemensikkema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better, thanks 🙂 Just a couple of nitpicks, but otherwise 👍

public final class SubmissionsMiddleware: Middleware {
public final class SubmissionsMiddleware: Middleware, ServiceType {

/// See `ServiceType`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use spaces here instead of tabs :)

README.md Outdated
try services.register(SubmissionsProvider())
```

It also include a middleware you have to register in your `MiddlewareConfig` :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*includes

@Magiguigui
Copy link
Author

I took care to correct from your review and improve a little bit the doc. Also add a commit of code (Wasn't sufficient for vapor to make Middleware ServiceType compliant) should really work now.


/// See `ServiceType`.
/// See `ServiceType`.
public static func makeService(for container: Container) throws -> SubmissionsMiddleware {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are tabs, please use spaces 🙂 (in the whole function)


/// See `Provider`
public func register(_ services: inout Services) throws {
services.register(SubmissionsMiddleware.self)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more tabs that should be spaces 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants