How to in caddy

Hi guys!
How to translate this from nginx
location ~* /admin/ {
return 302 https://www.$host$request_uri;
}
To caddy

Hi @Alex_Kim - this is a redirect, and you can find out how to issue those in Caddy here:

https://caddyserver.com/docs/redir