Island: Rename `api/version-update` to `api/island/version`
This commit is contained in:
parent
759de2a055
commit
3dbc892cb9
|
@ -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__()
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue