kin: BATON-FIX-016 [TECH DEBT] VAPID public key жёстко вшит как пустая строка в <meta>-тег — требует ручного заполнения при деплое
This commit is contained in:
parent
5fe9a603f8
commit
8c4c46ee92
3 changed files with 173 additions and 0 deletions
|
|
@ -132,6 +132,11 @@ async def health() -> dict[str, Any]:
|
|||
return {"status": "ok"}
|
||||
|
||||
|
||||
@app.get("/api/vapid-public-key")
|
||||
async def vapid_public_key() -> dict[str, str]:
|
||||
return {"vapid_public_key": config.VAPID_PUBLIC_KEY}
|
||||
|
||||
|
||||
@app.post("/api/register", response_model=RegisterResponse)
|
||||
async def register(body: RegisterRequest, _: None = Depends(rate_limit_register)) -> RegisterResponse:
|
||||
api_key = secrets.token_hex(32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue