Skip to content

Commit

Permalink
Fix config saving api (#13969)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Sep 25, 2024
1 parent 68465ae commit a6ccb37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frigate/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import traceback
from datetime import datetime, timedelta
from functools import reduce
from typing import Optional
from typing import Any, Optional

import requests
from fastapi import APIRouter, Path, Request, Response
from fastapi import APIRouter, Body, Path, Request, Response
from fastapi.encoders import jsonable_encoder
from fastapi.params import Depends
from fastapi.responses import JSONResponse, PlainTextResponse
Expand Down Expand Up @@ -166,7 +166,7 @@ def config_raw():


@router.post("/config/save")
def config_save(save_option: str, body: dict):
def config_save(save_option: str, body: Any = Body()):
new_config = body

if not new_config:
Expand Down

0 comments on commit a6ccb37

Please sign in to comment.