# Put Decorator operation httpMethod

Module
import { Put } from "@tsed/common"
Source/packages/common/src/mvc/decorators/method/route.ts

# Overview

function Put(path?: string | RegExp | any, ...args: any[]): Function;

# Description

This method is just like the router.METHOD() methods, except that it matches all HTTP methods (verbs).

This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches. For example, if you placed the following route at the top of all other route definitions, it would require that all routes from that point on would require authentication, and automatically load a user. Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next() to continue matching subsequent routes.