Skip to content

Instantly share code, notes, and snippets.

@tjmonsi
Created December 15, 2021 10:37
Show Gist options
  • Save tjmonsi/e92b6091038e7a9ed6337d1f74817bd9 to your computer and use it in GitHub Desktop.
Save tjmonsi/e92b6091038e7a9ed6337d1f74817bd9 to your computer and use it in GitHub Desktop.
// import { root } from './root/index.js';
import { blog } from './blog/index.js';
import { blogId } from './blog/_id/index.js';
import { user } from './user/index.js';
import { authLogin, authLogout, checkAuth } from './auth/index.js';
export const paths = {
// '/': root,
'/blog': blog,
'/blog/:id': blogId,
'/user': user,
'/auth/login': authLogin,
'/auth/logout': authLogout,
'/auth/check-auth': checkAuth
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment