!!GitHub_Desktop<feature/dynamic-routing>

This commit is contained in:
Frank 2021-10-25 10:57:19 -04:00
parent 7f3134a929
commit a9c2ab27c2
6 changed files with 18 additions and 5 deletions

View file

@ -26,7 +26,7 @@ resources:
type: github
name: Safelite/AzureDevOps
endpoint: Safelite
ref: DigitalConsumer
ref: DigitalConsumer #refs/tags/t5.3.4
variables:
- group: Digital-Infrastructure
@ -45,7 +45,7 @@ stages:
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml
# Dev Build/Deploy
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- ${{ else }}:
- stage: Dev
variables:
- group: FixMyGlassDev

View file

@ -12,5 +12,4 @@ export default {
components: {
}
}
</script>

View file

@ -1,10 +1,11 @@
import axios from "axios";
import { lazyLoadComponent } from "@/utilities/component-loader.js";
import { lazyLoadComponent } from "@/router/dyanmic-routing/component-loader.js";
export function getRouteData(relativeUrl) {
return axios
.get("https://mockey.qa.sagaws.net/service/content/sitemap" + relativeUrl)
.then((response) => {
// This is really only for Mockey. In a real case, this would just be a 404 and we would check status code.
if (response.data.Result === undefined) {
return Promise.reject("Could not find any details about given route.");

View file

@ -1,5 +1,5 @@
import { createWebHistory, createRouter } from "vue-router";
import { getRouteData } from "@/utilities/route-compile.js";
import { getRouteData } from "@/router/dynamic-routing/route-compile.js";
import NotFound from "@/layouts/NotFound.vue";
import Home from "@/layouts/Home.vue";

View file

@ -0,0 +1,13 @@
module.exports = {
publicPath: '/',
devServer: {
port: 8080,
proxy: {
'api/v1/content*':{
target: 'https://localhost:44360/',
ws: false,
changeOrigin: true
}
}
}
}