mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-27 08:40:10 +02:00
setup redirects
This commit is contained in:
@@ -27,7 +27,7 @@ ID = "webmaker"
|
|||||||
force = true
|
force = true
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/app/creation/*"
|
from = "/create"
|
||||||
to = "/app/:splat"
|
to = "/app"
|
||||||
status = 200
|
status = 200
|
||||||
force = true
|
force = true
|
@@ -13,8 +13,8 @@ export default function () {
|
|||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<App path="/" />
|
<App path="/" />
|
||||||
<App path="/creation/:itemId" />
|
<App path="/create/:itemId" />
|
||||||
<App path="/app/creation/:itemId" />
|
<App path="/app/create/:itemId" />
|
||||||
<App default />
|
<App default />
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
|
@@ -2,23 +2,23 @@ export default [
|
|||||||
{
|
{
|
||||||
id: 'react',
|
id: 'react',
|
||||||
title: 'React',
|
title: 'React',
|
||||||
img: 'assets/react-logo.svg'
|
img: '/assets/react-logo.svg'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'vue',
|
id: 'vue',
|
||||||
title: 'Vue',
|
title: 'Vue',
|
||||||
img: 'assets/vue-logo.svg',
|
img: '/assets/vue-logo.svg',
|
||||||
isFileModeSupported: true
|
isFileModeSupported: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'preact',
|
id: 'preact',
|
||||||
title: 'Preact',
|
title: 'Preact',
|
||||||
img: 'assets/preact-logo.svg'
|
img: '/assets/preact-logo.svg'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'kontra-game-engine',
|
id: 'kontra-game-engine',
|
||||||
title: 'Kontra Game Engine',
|
title: 'Kontra Game Engine',
|
||||||
img: 'assets/html5-logo.svg',
|
img: '/assets/html5-logo.svg',
|
||||||
isFileModeSupported: true
|
isFileModeSupported: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user