Hi, I'm creating an app where people can have "things" and they can view their own things and they can also view other peoples' things. There's a bit of code in the getServerSideProps function and I don't want to repeat this code (or the page component itself).
So I need to setup a single page component/file to handle two routes that look like these:
/things/profile/[username]/things
How do I do this?