File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 33
44 Changelog
55=========
6+ - :release: `1.8.1 <11th March 2023> `
7+ - :feature: `28 ` CORS
68
79- :release: `1.8.0 <11th March 2023> `
810- :feature: `26 ` Move random number generation to generators module
Original file line number Diff line number Diff line change 11"""Public API for our projects"""
22
3- __version__ = "1.8.0 "
3+ __version__ = "1.8.1 "
Original file line number Diff line number Diff line change 44
55import sentry_sdk
66from fastapi import APIRouter , FastAPI
7+ from fastapi .middleware .cors import CORSMiddleware
78from imsosorry import uwuify
89
910# pylint: disable-next=no-name-in-module
@@ -38,6 +39,13 @@ class TextModel(BaseModel):
3839 version = __version__ ,
3940)
4041
42+ app .add_middleware (
43+ CORSMiddleware ,
44+ allow_origins = ["*" ],
45+ allow_methods = ["*" ],
46+ allow_headers = ["*" ],
47+ )
48+
4149router_root = APIRouter ()
4250
4351
You can’t perform that action at this time.
0 commit comments