🚚 Move oauth url
This commit is contained in:
		@@ -23,8 +23,8 @@ render(() => (
 | 
			
		||||
        <Route path="/personalise" component={lazy(() => import("./pages/personalise.tsx"))} />
 | 
			
		||||
        <Route path="/auth/login" component={lazy(() => import("./pages/auth/login.tsx"))} />
 | 
			
		||||
        <Route path="/auth/register" component={lazy(() => import("./pages/auth/register.tsx"))} />
 | 
			
		||||
        <Route path="/auth/oauth/connect" component={lazy(() => import("./pages/auth/connect.tsx"))} />
 | 
			
		||||
        <Route path="/auth/oauth/callback" component={lazy(() => import("./pages/auth/callback.tsx"))} />
 | 
			
		||||
        <Route path="/auth/o/connect" component={lazy(() => import("./pages/auth/connect.tsx"))} />
 | 
			
		||||
        <Route path="/auth/o/callback" component={lazy(() => import("./pages/auth/callback.tsx"))} />
 | 
			
		||||
        <Route path="/users/me/confirm" component={lazy(() => import("./pages/users/confirm.tsx"))} />
 | 
			
		||||
      </Router>
 | 
			
		||||
    </UserinfoProvider>
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ export default function OauthConnectPage() {
 | 
			
		||||
  const location = useLocation();
 | 
			
		||||
 | 
			
		||||
  async function preConnect() {
 | 
			
		||||
    const res = await fetch(`/api/auth/oauth/connect${location.search}`, {
 | 
			
		||||
    const res = await fetch(`/api/auth/o/connect${location.search}`, {
 | 
			
		||||
      headers: { "Authorization": `Bearer ${getAtk()}` }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
@@ -51,7 +51,7 @@ export default function OauthConnectPage() {
 | 
			
		||||
    setLoading(true);
 | 
			
		||||
    setStatus("Approving...");
 | 
			
		||||
 | 
			
		||||
    const res = await fetch("/api/auth/oauth/connect?" + new URLSearchParams({
 | 
			
		||||
    const res = await fetch("/api/auth/o/connect?" + new URLSearchParams({
 | 
			
		||||
      client_id: searchParams["client_id"] as string,
 | 
			
		||||
      redirect_uri: encodeURIComponent(searchParams["redirect_uri"] as string),
 | 
			
		||||
      response_type: "code",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user