File: cors_per_route.py

package info (click to toggle)
python-hug 2.6.0-2.4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,072 kB
  • sloc: python: 8,938; sh: 99; makefile: 17
file content (6 lines) | stat: -rw-r--r-- 103 bytes parent folder | download
1
2
3
4
5
6
import hug


@hug.get()
def cors_supported(cors: hug.directives.cors = "*"):
    return "Hello world!"