Skip to content

Commit

Permalink
[v3-Maintenance]-Consolidate-and-Document-Core-Changes-in-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Apr 26, 2024
1 parent 2cac4c6 commit 1ecc561
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions docs/core/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: whats_new
title: πŸ†• Whats New in v3
sidebar_position: 2
toc_max_heading_level: 4
toc_max_heading_level: 3
---

:::caution
Expand Down Expand Up @@ -146,15 +146,10 @@ app.Route("/api").Route("/user/:id?")

### Middleware registration

We have aligned our method for middlewares closer to express and now also support the [`Use`](./api/app#use) of multiple prefixes.
We have aligned our method for middlewares closer to [`Express`](https://expressjs.com/de/api.html#app.use) and now also support the [`Use`](./api/app#use) of multiple prefixes.

Registering a subapp is now also possible via the [`Use`](./api/app#use) method instead of the old `app.Mount` method.

```diff
- Use(args ...interface{}) Router
+ Use(args ...any) Router
```

<details>
<summary>Example</summary>

Expand Down Expand Up @@ -290,6 +285,27 @@ Monitor middleware is now in Contrib package.

## πŸ“‹ Migration guide

- [πŸš€ App](#-app-1)
- [πŸ—Ί Router](#-router-1)
- [🧠 Context](#-context-1)
- [πŸ“Ž Parser](#-parser)
- [πŸ”„ Redirect](#-redirect-1)
- [🌎 Client package](#-client-package-1)
- [🧬 Middlewares](#-middlewares-1)


### πŸš€ App

### πŸ—Ί Router

### 🧠 Context

### πŸ“Ž Parser

### πŸ”„ Redirect

### 🌎 Client package

### 🧬 Middlewares

#### CORS
Expand Down

0 comments on commit 1ecc561

Please sign in to comment.