1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-27 00:30:09 +02:00

setup redirects

This commit is contained in:
Kushagra Gour
2024-02-28 17:49:57 +05:30
parent 8877651a0b
commit 9c3de5d235
3 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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>
); );

View File

@@ -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
} }
]; ];