오윤석

character page 추가

import Search from './routes/Search.svelte';
import Character from './routes/Character.svelte';
const routes = {
'/': Search,
'/character': Character,
'/character/:character': Character,
};
export default routes;
\ No newline at end of file
......
<script>
export let params = {};
import {push} from 'svelte-spa-router';
function init() {
if(!params.character) {
M.toast({html:"캐릭터명을 입력해주세요."});
push("/");
}
}
init();
</script>
<svelte:head>
</svelte:head>
\ No newline at end of file