Island: Rename `api/version-update` to `api/island/version`

This commit is contained in:
Ilija Lazoroski 2022-08-01 15:16:39 +02:00
parent 759de2a055
commit 3dbc892cb9
2 changed files with 2 additions and 3 deletions

View File

@ -8,8 +8,7 @@ logger = logging.getLogger(__name__)
class VersionUpdate(AbstractResource): class VersionUpdate(AbstractResource):
# API Spec: Rename to /version-info urls = ["/api/island/version"]
urls = ["/api/version-update"]
def __init__(self): def __init__(self):
super(VersionUpdate, self).__init__() super(VersionUpdate, self).__init__()

View File

@ -14,7 +14,7 @@ class VersionComponent extends React.Component {
} }
componentDidMount() { componentDidMount() {
fetch('/api/version-update') // This is not authenticated on purpose fetch('/api/island/version') // This is not authenticated on purpose
.then(res => res.json()) .then(res => res.json())
.then(res => { .then(res => {
this.setState({ this.setState({