mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
24 lines
494 B
TypeScript
24 lines
494 B
TypeScript
import { createApp } from "vue";
|
|
import "./style.css";
|
|
import "virtual:uno.css";
|
|
import { createRouter, createWebHistory } from "vue-router";
|
|
import Login from "./login.vue";
|
|
import App from "./App.vue";
|
|
|
|
const Home = { template: "<div>Home</div>" };
|
|
|
|
const routes = [
|
|
{ path: "/", component: Home },
|
|
{ path: "/oauth/authorize", component: Login },
|
|
];
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
const app = createApp(App);
|
|
app.use(router);
|
|
|
|
app.mount("#app");
|