Skip to content
Snippets Groups Projects
Commit fedfc67e authored by Petitminion's avatar Petitminion Committed by petitminion
Browse files

nodeinfo2.1 should be on v2 api

parent 04d28186
No related branches found
No related tags found
1 merge request!2790migrate frontend to api V2 (#2324)
Pipeline #36400 passed with warnings with stages
in 18 minutes and 32 seconds
Cypress.Commands.add('login', () => { Cypress.Commands.add('login', () => {
cy.fixture('testuser.json').then(({ username, password }) => { cy.fixture('testuser.json').then(({ username, password }) => {
// We need to request a page that sets the csrf cookie // We need to request a page that sets the csrf cookie
cy.request('/api/v1/instance/nodeinfo/2.1/') cy.request('/api/v2/instance/nodeinfo/2.1/')
cy.getCookie('csrftoken').then(($cookie) => { cy.getCookie('csrftoken').then(($cookie) => {
cy.request({ cy.request({
......
...@@ -35,7 +35,7 @@ const checkAndSwitch = async (url: string) => { ...@@ -35,7 +35,7 @@ const checkAndSwitch = async (url: string) => {
try { try {
const instanceUrl = new URL(url.startsWith('https://') || url.startsWith('http://') ? url : `https://${url}`).origin const instanceUrl = new URL(url.startsWith('https://') || url.startsWith('http://') ? url : `https://${url}`).origin
await axios.get(instanceUrl + '/api/v1/instance/nodeinfo/2.1/') await axios.get(instanceUrl + '/api/v2/instance/nodeinfo/2.1/')
store.commit('ui/addMessage', { store.commit('ui/addMessage', {
content: t('views.ChooseInstance.message.newUrl', { url: instanceUrl }), content: t('views.ChooseInstance.message.newUrl', { url: instanceUrl }),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment